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

Description Property

is it possible to set the value of a cell programatically using the cell description property. For example I would assign the cell a1 a description "LoanTerm" could I then programatically place a value ib the cell. Thank you

4 Replies

AD Administrator Syncfusion Team January 7, 2005 04:17 PM UTC

I am not sure I understand. But if you want the grid to display what you set as the style.Description property instead of its normal display of style.CellValue (which is equivqlent to style.Text), then one way to do this is to subscribe to the DrawCellDisplayText event. In your handler set: e.DisplayText = e.Style.Description

TT Tito Toro January 7, 2005 04:34 PM UTC

Sorry I''ll try to rephrase it. Instead of setting a cell value using the range. Is it possible to use it''s description property to reference the cell? Thanks

TT Tito Toro January 7, 2005 04:50 PM UTC

For example: gridControl1[1, 1].CellValue = "123456"; sets the value. is there a way to set the cellvalue using the description property? Thanks

AD Administrator Syncfusion Team January 7, 2005 08:41 PM UTC

What descrption property are you talking about? gridControl1[1, 1].Description = "PushButtonText"; sets the text that appears on PushButton cells. So, I don''t know of any other description property that you can set. If you set the gridControl1[1, 1].Description property for cells other than PushButtons, you can make this description appear in the cell using the event I mentioned above.

Live Chat Icon For mobile
Up arrow icon