Hi Silver,
Thanks for your interest in Syncfusion products.
Please find below the solutions for your queries.
1) To set the row height for all rows, you can use DefaultRowHeight property.
this.gridDataBoundGrid1.DefaultRowHeight = 50;
2) To stop resizing the row heights by mouse, you can cancel this action in the ResizingRows event.
private void gridDataBoundGrid1_ResizingRows(object sender, GridResizingRowsEventArgs e)
{
e.Cancel = true;
}
3) You can retrieve the cell state by using the following code.
private void gridDataBoundGrid1_CellMouseHover(object sender, GridCellMouseEventArgs e)
{
if(this.gridDataBoundGrid1.Selections.GetSelectedRows(true,false).Contains(GridRangeInfo.Row(e.RowIndex)))
textBox3.Text = "Cell is in current selection and mousehovered state";
else
textBox3.Text = "Cell is not in current selection and mousehovered state";
}
4) To find out the row that is being hit, please use the following code in CellClick event handler:
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
this.textBox1.Text = this.gridDataBoundGrid1[cc.RowIndex,cc.ColIndex].CellType.ToString();
int row = this.gridDataBoundGrid1.CurrentCell.RowIndex;
this.textBox2.Text = row.ToString();
It is possible to mark the whole row as selected on clicking a cell in that row as well as turn on multiple row selection by setting ListBoxSelectionMode property to MultiExtended.
this.gridDataBoundGrid1.Model.Options.ListBoxSelectionMode = SelectionMode.MultiExtended;
Please refer the following sample that does the same.
http://websamples.syncfusion.com//samples/Grid.Windows/F77369/main.htm
Regards,
Rajadurai