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.
Unfortunately, activation email could not send to your email. Please try again.

RowDataBound event for Winforms

Thread ID:

Created:

Updated:

Platform:

Replies:

69341 Oct 24,2007 12:02 PM Oct 25,2007 07:14 PM Windows Forms 1
loading
Tags: GridControl
Stephane Dapsanse
Asked On October 24, 2007 12:02 PM

Hi,

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

Thanks

Rajagopal [Syncfusion]
Replied On October 25, 2007 07:14 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;