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.

accessing on griddatabound[rowIndex,colIndex].tag

Thread ID:

Created:

Updated:

Platform:

Replies:

46984 Jul 26,2006 04:45 AM Jul 26,2006 08:54 AM Windows Forms 3
loading
Tags: GridControl
I Gusti Ngurah Wirawan
Asked On July 26, 2006 04:45 AM

Hi,

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
Wirawan

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

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.

Thanks,
Rajagopal

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


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?

Regards,
Wirawan

Administrator [Syncfusion]
Replied On July 26, 2006 08:54 AM

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.

Thanks,
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.

;