Asking about DataGrid Multi-Select???
-
Hi everybody, I've followed a tutorial in Codeproject.com to make an asp.net page. This page has a datagrid with a checkbox for each row. Then I can select the checkbox the select the row. But the page doesn't work. I don't know the reason why. This code is placed in the button_onclick event
Dim drItem as DataGridItem For Each drItem in DataGrid1.Items Dim chk As CheckBox = CType(drItem.Cells(0).Controls(1), CheckBox) If chk.Checked then Response.Write (drItem.Cells(1).Text) End If Next
-
Hi everybody, I've followed a tutorial in Codeproject.com to make an asp.net page. This page has a datagrid with a checkbox for each row. Then I can select the checkbox the select the row. But the page doesn't work. I don't know the reason why. This code is placed in the button_onclick event
Dim drItem as DataGridItem For Each drItem in DataGrid1.Items Dim chk As CheckBox = CType(drItem.Cells(0).Controls(1), CheckBox) If chk.Checked then Response.Write (drItem.Cells(1).Text) End If Next
-
Hi everybody, I've followed a tutorial in Codeproject.com to make an asp.net page. This page has a datagrid with a checkbox for each row. Then I can select the checkbox the select the row. But the page doesn't work. I don't know the reason why. This code is placed in the button_onclick event
Dim drItem as DataGridItem For Each drItem in DataGrid1.Items Dim chk As CheckBox = CType(drItem.Cells(0).Controls(1), CheckBox) If chk.Checked then Response.Write (drItem.Cells(1).Text) End If Next
Tran Quoc Thang wrote: I've followed a tutorial in Codeproject.com to make an asp.net page What tutorial is that. Ask the question there.... and try for answer from the author of that article.. Else post more information about your problem There is nothing new under the sun,
But there are lots of old things we don't know.
- Ambrose Bierce