datagrid button columns

ales

New member
Joined
Jul 4, 2003
Messages
3
I have datagrid with two Button Colummns. I set CommandName property on Select so on button clikck DataGrid1_SelectedIndexChanged has responsed. My problem is that click on first button column shows one table and on other buttom column shows other table. I dont know which button column was clicked. I know which row but dont know which column. Can you help me. Thank YOU.
 
Give each one a different CommandName attribute and in the event check e.CommandName and then you will know which one was clicked.
 
Back
Top