Hi,
In WHDG i am using <BoundCheckBoxField> inside parent and child gridview. My question is how can we get the primary key value(Datakeys) of row for which checkbox is check?
Thanks,
Mitesh
Hi Duane,
I have fixed this problem with use of .JS code which i found in sample website of Infragistics. Thanks for your guidence in this issue.
Regards,
Mits
Hello mits281,
This is just a follow up on the thread of you have any questions or need any further assistance on getting the data key value of the record on which the checkbox is checked.
Let me know if you have any questions with this matter. Thank you.
Hi Mitesh,
I'm not entirely sure when you want to get the data key. But if you have the cell that was checked/unchecked. Simply do cell.get_row().get_dataKey(); That will return an array of the data key on the client. On the server, you could do cell.Row.DataKey. If you need a place to know when it is checked or unchecked, I suggest the cellValueChanged client event for the Editing core. That will return the cell. If you get the column and then the key, you can figure out if it is a checkbox column.
regards,David Young