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

Hide Grid Column after Advance Binding

2 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Abdul
Top achievements
Rank 2
Abdul asked on 26 Nov 2010, 12:49 PM
Hide Columns of Grid after using advance binding... 
i am using data reader to bind data with grid and i want to hide some columns on the base of user given criteria on server side

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Nov 2010, 01:24 PM
Hello Abdul,

You can try the following code to hide the desired column.

C#:
RadGrid1.MasterTableView.GetColumn("ColumnUniqueName").Visible = false;

Thanks,
Princy.
0
Abdul
Top achievements
Rank 2
answered on 26 Nov 2010, 04:17 PM
Thanks...

For Users who are using ODBCDataReader to Bind Data with grid... the better convert that datareader to a DataTable and then bind to grid... this will make post binding work easy
Tags
Grid
Asked by
Abdul
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Abdul
Top achievements
Rank 2
Share this question
or