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

DataBinding

1. Is there event in GridDataBoundGrid that fires on binding row from datasource? I need to change style for some cells depending on another cells style during databinding. 2. Can I change style for cells after databinding? This code don''t work: gridControl.DataSource = datasource; for (int i=0; i< gridControl.Binder.RecordCount; i++) { gridControl[i, 1].ImageList = gridImageList; gridControl[i, 1].ImageIndex = 1; // after this line gridControl[i,1] still not initialized }

2 Replies

VC Vladimir Churukin September 14, 2005 11:09 AM UTC

?


AD Administrator Syncfusion Team September 14, 2005 11:56 AM UTC

Hi VladiCh, The style properties of the GridDataBoundGrid has to be handled in PrepareViewStyleInfo or QueryCellInfo handlers Refer this KB : How do I change the Backcolor of a single cell in a GridDataBoundGrid and http://www.syncfusion.com/support/kb/grid/Default.aspx Regards, Stanley

Loader.
Live Chat Icon For mobile
Up arrow icon