BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi
Venkata,
Thank you for your interest in Syncfusion product.
In GridControl, we can’t able to bind the database directly to it. Instead, as a suggestion, you can make use of GridGroupingControl to bind the data source. But, if you still need to use GridControl, you can populate the values from the datasource. We have added a sample to understand how you can easily bind data to GridControl.
CodeSnippet[C#]:
this.gridControl1.RowCount = table.Rows.Count;
this.gridControl1.ColCount =
table.Columns.Count;
this.gridControl1.PopulateValues(GridRangeInfo.Cells(1, 1, gridControl1.RowCount, gridControl1.ColCount), table);
by using PopulateValues() you can bind the data into GridControl by providing Rowcount and ColCount values of the table(here datasource is a “table”).
Please let me know if you have any
concerns.
Regards,
ManiRatheenam S
Hi Venkata,
We would like you to Know about that the GridDataBoundGrid Control can also perform RowWise Operation. Here, by using ‘CurrentCellShowedDropDown’ event in GridDataBoundGrid Control which behaves same as ‘CellEnter’ event which you have used in DataGridView Control, you can perform rowwise operation. We have added a sample below for your better convenience.
Please let us know if you have any further assistance.
Regards,
ManiRatheenam S
Hi Venkata,
Thanks for the update.
We hope you got a solution for this query from your previous forum(116224) update. Please let us know if you have any other concerns.
Thanks & Regards,
AL.Solai.