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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

accessing on griddatabound[rowIndex,colIndex].tag

Thread ID:





46984 Jul 26,2006 08:45 AM UTC Jul 26,2006 12:54 PM UTC WinForms 3
Tags: GridControl
I Gusti Ngurah Wirawan
Asked On July 26, 2006 08:45 AM UTC


I have problem when accessing value on griddatabound[rowIndex,colIndex].tag why it sometime gives null, although i have set it to a value.

Thanks in advance

Administrator [Syncfusion]
Replied On July 26, 2006 09:15 AM UTC

Hi Wirawan,

You cannnot set any cell or row specific properties for the GridDataBoundGrid other than the CellValue. You need to handle the PrepareViewStyleInfo (or Model.QueryCellInfo) Event to do this. Through this event handler you can set the style properties for any specific cells in the grid.

For your scenario, try handling the Model.QueryCellInfo event, there check for the e.RowIndex and e.ColIndex, if that points to the desired cell you needed, set e.style.Tag there.


I Gusti Ngurah Wirawan
Replied On July 26, 2006 10:26 AM UTC

Thanks for the quick answer.

But in my condition i can''t do that by setting tag value in PrepareViewStyleInfo (or Model.QueryCellInfo). Are there another way to do that?


Administrator [Syncfusion]
Replied On July 26, 2006 12:54 PM UTC

Hi Wirawan,

Its not possible to do this other than handling the events(Model.QueryCellInfo) for a DataBoundGrid. You can try having a HashTable to store the object, with row and column index as the key.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon