J
Joe Book
I am trying to covert the following code to VB.NET. This code is
using reflection to auto size the columns of a grid. Unfortunately, I
am not familiar with C#. I have tried the various code converters and
the first three lines convert very nicely but it chokes on line within
the loop. Any help?
Type t = dgRows.GetType();
MethodInfo m = t.GetMethod("ColAutoResize",BindingFlags.NonPublic);
for (int i = dgRows.FirstVisibleColumn; (i <
dgLogging.VisibleColumnCount); i++)
{
m.Invoke(dgRows, new object[]{i});
}
using reflection to auto size the columns of a grid. Unfortunately, I
am not familiar with C#. I have tried the various code converters and
the first three lines convert very nicely but it chokes on line within
the loop. Any help?
Type t = dgRows.GetType();
MethodInfo m = t.GetMethod("ColAutoResize",BindingFlags.NonPublic);
for (int i = dgRows.FirstVisibleColumn; (i <
dgLogging.VisibleColumnCount); i++)
{
m.Invoke(dgRows, new object[]{i});
}
