Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
chiragvm
Yak Posting Veteran
65 Posts |
Posted - 2006-06-13 : 07:58:10
|
Hello Friends,I need your help.My query is that there are checkbox control in my datagrid. Nowhow can i find control in datagrid using (vb.net). I want to check if checkbox's checked property is true or false.Help Me Out...... |
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2006-06-13 : 08:55:36
|
A datagrid consists of DataGridItems. each DataGridItem has a FindControl() method that will return a reference to your checkbox. Most events that the datagrid produces return a reference to the DataGridItem that fired the event; use this reference to execute the FindControl() method to find your checkbox. Once you have a reference to your checkbox, you are good to go.You need to provide more info if you need more help; since a datagrid consists of many rows, it is not clear what you are trying to do or when you need to do it. Are you trying to find the checkbox in one particular row or are trying to loop through all the rows to find all of them one by one? |
 |
|
|
|
|