RadGrid. What is the itemdatabound equivalent.

3 posts, 1 answers
  1. Zenute Marins
    Zenute Marins avatar
    18 posts
    Member since:
    Nov 2009

    Posted 07 Mar 2012 Link to this post

    We are buiding a telerik winforms application  for the first time, and we can´t understand the radgrid event model.
    There is no itemdatabound event, and although cellformatting seems to be the way to go we are not comfortable with it.
    We have a very easy task (at least in Asp.net or even gridview), When a cell has a certain value, say 1, we want the grid to show 'Person'
    in that same cell.
    We debugged the cellformatting event and noticed that the event is fired many times. Is there an event to inspect/change  cells in a row basis. Cellformatting is an awkward  event to handle the task.

    Thank you., 
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 07 Mar 2012 Link to this post

    Hello,

    It would be useful to know a little more about what you would like to do, but the CellFormatting event is the way to go for changing the appearance of cells based on what you have described.

    You might find it helpful to understand the RadGridView's UI Virtualization model which is explained in this article

    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Zenute Marins
    Zenute Marins avatar
    18 posts
    Member since:
    Nov 2009

    Posted 07 Mar 2012 Link to this post

    Thank you Richard.

    I read the article and it really helped me.

    I´ll work a bit more on the grid.
Back to Top