Menu

Row Selection

Help
Coolarian
2007-06-13
2013-04-23
  • Coolarian

    Coolarian - 2007-06-13

    I have a source grid, I want to hide three columns one of them carry the primary key. When I click on any row, I need to populate a set of text box fields from the cell values of the selected rows including the hidden columns.
    How can I implement the above scenario in a C# application.
    Thanks in advance.

     
    • Davide Icardi

      Davide Icardi - 2007-06-13

      You can hide a column using the Visible property like this:

      grid.Columns[x].Visible = false;

      To read a cell you can use this code:
      grid[r,c].Value

      You can use the Grid.Selection.FocusRowEntered event to see when the user activate the row.

      Davide

      P.S. This forum is obsolete. From now use the forum on the devage.com website

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.