selection validation of Devexpress gridview from client side
I have got a devexpress gridview with Selection Enabled.
Is it possible that, on a Button click to check whether rows are selected or not from clientside.
If not prpmpt alert saying--> 'NO ROW IS SELECTED'
Basically i开发者_Python百科 need to loop through gridview from client side and check if selected or not.
Can this be done. If so please help me out.
Yes, it is possible. You should call the GridView's client side GetSelectedRowCount() method to determine the number of rows selected in the ASPxGridView.
bool value = Convert.ToBoolean(gvMain.SelectedRowsCount);
精彩评论