Questions of Datagrid

Axi

New member
Joined
Sep 30, 2005
Messages
1
Programming Experience
Beginner
How every one!
I have two questions about Datagrid web control:

1. How to get the column width of the datagrid by click the button in template column? I tried to use e.item.cells(2).width and datagrid1.columns(2).itemstyle.width on DataGrid1_ItemCommand event, but both of them can not work, how get it?

2. I make a button (CommandName="Select") in template column and want to select the row in datagrid by click this button, but it can not work. I change it to LinkButton, it can work. I change it to ImageButton, it can not work. Why? Does the selected command can not be supported by Button or ImageButton? It only can use LinkButton?

Thanks for help.
 
Back
Top