We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

RowDataBound event for Winforms

Hi,

Is there such a thing as a RowDataBound event for Winforms?
What is it and what method call can programmatically fire it?

Thanks

1 Reply

RA Rajagopal Syncfusion Team October 25, 2007 11:14 PM UTC

Hi Stephane,

You can try the grid.Model.QueryCellInfo event to change the styles for the row and column in grid. You can change the values in grid dynamically using this event. Use the e.RowIndex to point any row and e.ColIndex to point any column in grid.

void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.RowIndex == 3 && e.ColIndex > 0)
{
e.Style.BackColor = Color.Red;
e.Style.CellValue = "Some Value";
}
}

Let me know if you have any questions.

Regards,
Rajagopal

Loader.
Live Chat Icon For mobile
Up arrow icon