This is a migrated thread and some comments may be shown as answers.

ItemCreated Event for multiple Grids

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Atchut
Top achievements
Rank 1
Atchut asked on 05 Jun 2012, 07:54 PM
Hello,

I am having multiple grids and I am using Item Created event for all the grids.

My Scenario is, I want to make some columns visible/Invisible on creating Grid.

How can I handle multiple grid columns in ItemCreated EventHandler.

TIA

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Jun 2012, 04:48 AM
Hi Atchut,

You can hide the columns in ItemCreated event as shown below.
C#:
void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
  RadGrid1.MasterTableView.GetColumn("UniqueName1").Visible = false;
  RadGrid2.MasterTableView.GetColumn("UniqueName2").Visible = false;
}

Thanks,
Shinu.
Tags
Grid
Asked by
Atchut
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or