Skip to content

Change the WebDataGrid cell value

New Discussion
achraf gharbi
achraf gharbi asked on Jun 3, 2019 6:43 AM

hi ,

iam using autogenerated columns in the webdatagrid and i want to change  any cell value without using an  UnboundField ,

is this possible ?

thank you.

Sign In to post a reply

Replies

  • 0
    Nadia Robakova
    Nadia Robakova answered on May 31, 2019 6:59 AM

    Hi,

    Thank you for contacting Infragistics!

    You can change the cell value in the InitializeRow event. For example:

    protected void WebDataGrid1_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            e.Row.Items[1].Text = "Updated Text " + e.Row.Index;
        }

    You can look at this forum post:

    https://www.infragistics.com/community/forums/f/ultimate-ui-for-asp-net/42999/how-to-change-the-value-of-a-column-in-the-initializerow-event-of-the-webdatagrid

    • 0
      achraf gharbi
      achraf gharbi answered on May 31, 2019 10:18 AM

      hi,

      i always keep receving  A cell value can only be set for cells that are part of an UnboundField Error.

      i just want remove or hide the value of a cell when i enable the EditCore .

      thank you.

      • 0
        Nadia Robakova
        Nadia Robakova answered on Jun 3, 2019 6:43 AM

        Hi,

        Can you send us a small sample whit the behavior that you want?

        When you want to change the cell value? When you open a cell in edit mode or when the grid is loaded?

        There should not be difference when using UnboundField or BoundField.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
achraf gharbi
Favorites
0
Replies
3
Created On
Jun 03, 2019
Last Post
7 years, 5 months ago

Suggested Discussions

Created by

Created on

Jun 3, 2019 6:43 AM

Last activity on

Jun 3, 2019 6:43 AM