开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜