G
G Dean Blake
I'm writing a Grid Print component and I am being passed a datagrid. I have
to take apart the various columns in order to print them.
In the case where the grid had a template column that is a text box, I am
finding that myItem.Cells(i).Controls(0).GetType.Name gets "LiteralControl".
I can't seem to find out how to tell what kind of control it is i.e.
dropdownlist, textbox etc. I suppose I could try casting it as a textbox to
see if it throws an exception but I don't want to do that as it would slow
things down.
Anyone know how to see what kind of control it is?
Thanks,
G
to take apart the various columns in order to print them.
In the case where the grid had a template column that is a text box, I am
finding that myItem.Cells(i).Controls(0).GetType.Name gets "LiteralControl".
I can't seem to find out how to tell what kind of control it is i.e.
dropdownlist, textbox etc. I suppose I could try casting it as a textbox to
see if it throws an exception but I don't want to do that as it would slow
things down.
Anyone know how to see what kind of control it is?
Thanks,
G