
Nikhil Jain
Top achievements
Rank 1
Nikhil Jain
asked on 17 Jan 2011, 08:36 AM
Hi
I want to Know, How can implement the Show and Hide of the particular Column / s at Runtime through checkbox.
Regards
I want to Know, How can implement the Show and Hide of the particular Column / s at Runtime through checkbox.
Regards
4 Answers, 1 is accepted
0
Hello Nikhil Jain,
Milan
the Telerik team
Our columns have a property called IsVisible - when this property is set to false the respective column will become invisible. You can access the columns by using the Columns property on RadGridView.
Regards,Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0

Brian
Top achievements
Rank 1
answered on 18 Jan 2011, 03:25 PM
i used a piece like this to hide during Grouping.
private
void
inventoryReportGrid_Grouping(
object
sender, GridViewGroupingEventArgs e)
{
ColumnGroupDescriptor gd = (ColumnGroupDescriptor)e.GroupDescriptor;
var column = gd.Column;
if
(e.Action == GroupingEventAction.Place)
{
if
(column !=
null
)
{
column.IsVisible =
false
;
}
}
else
if
(e.Action == GroupingEventAction.Remove)
{
if
(column !=
null
)
{
column.IsVisible =
true
;
}
}
}
0

David
Top achievements
Rank 1
answered on 20 Jan 2011, 07:55 PM
Hello Milan ,
Do you know the impact of hide the column for print and export? If I hide a column, will it still being printed or exported?
Thx,
David
Do you know the impact of hide the column for print and export? If I hide a column, will it still being printed or exported?
Thx,
David
0
Hello Nikhil Jain,
Milan
the Telerik team
If a column is hidden it will not be exported or printed.
Greetings,Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>