I'm beginner in using DevExpress tools.
I can not find any property, that shows the gridControl's row selections state, to my if statement.
Any suggestion?
I'm beginner in using DevExpress tools.
I can not find any property, that shows the gridControl's row selections state, to my if statement.
Any suggestion?
amir bahmanzadegan
On
Each Gridcontrol has a view , if your name the view for example Tableview then you can handle it easy, if you select a row it will return row index if no row selected it will return minus row number:
int clickedRowHandle = Tableview.FocusedRowHandle;
if (clickedRowHandle < 0)
{
return;
}else{
//Do the action ...
}
You can use the ColumnView.SelectedRowsCount property to return the number of selected rows/cards.