I have a datagrid that has two templated columns. One is a label containing the RecordID, and the other is a checkbox. On the same page I also have a textbox. Ideally, the user would be able to enter the RecordID into the textbox and client-side script would set the corresponding checkbox.
I have this almost working, but for one item. I do not know how to tell how many rows are in the datagrid. I check the value of the label in a for loop. If the value matches what's in the textbox, I can set the checkbox. I just don't know when to stop.
I realize this is really a client-side scripting problem, but I thought someone who has worked with datagrids may have done this before. Can anyone explain this to me or point me to a good tutorial?
Any help would be greatly appreciated.
Thanks,
jrl
I have this almost working, but for one item. I do not know how to tell how many rows are in the datagrid. I check the value of the label in a for loop. If the value matches what's in the textbox, I can set the checkbox. I just don't know when to stop.
I realize this is really a client-side scripting problem, but I thought someone who has worked with datagrids may have done this before. Can anyone explain this to me or point me to a good tutorial?
Any help would be greatly appreciated.
Thanks,
jrl