I am using VB .Net 2003.
I am really struggling to understand how to display a table (datagrid) in a
web app. Let me explain what I want to do ... I want the table to be, say,
six columns wide. Columns 1, 3, 5 and 6 will contain data that is in an
array ... assume it is simple integer data. Now, I want columns 2 and 4 to
be pushbutton columns whereby when the user clicks on either the pushbutton
in column 2 or the one in column 4 an event is fired (SelectedIndexChanged)
that allows me to determine the row number AND the column number of the
button that was clicked. I have played around with this some using a
datagrid. At design time I can seet up the two puchbutton columns (using
the columns property of the datagrid) but I don't know how to make them
appear in columns 2 and 4 ... it seems that they come first and then the
data columns I add programmatically. So I have two questions:
How do I get the pushbuttons into columns 2 and 4?
How do I determine which column a pushbutton is in when a user clicks it?
Thanks for any help ... this problem is driving me batty!