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

Hide column(s) and adjust other column(s) width

1 Answer 172 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sirwan
Top achievements
Rank 1
Sirwan asked on 07 Mar 2015, 06:13 PM
Hi 
i want to hide a column based on a parameter value.
First: i can't figure out the expression i should write in group filter.
Second : i should adjust the other columns width, will this code do the job
Private Sub Table1_ItemDataBinding(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Table1.ItemDataBinding
        Table1.Body.Columns(index).Width = NewSize
End Sub

1 Answer, 1 is accepted

Sort by
0
Sirwan
Top achievements
Rank 1
answered on 10 Mar 2015, 12:38 PM
Thank's every body for not answering me :P
i figure it out my self.
Pranjal
Top achievements
Rank 1
commented on 16 May 2024, 06:52 AM

Could you please provide a solution? I'm currently stuck and could really use some guidance.
Todor
Telerik team
commented on 20 May 2024, 09:38 AM

Hi Pranjal,

You may use Bindings or Conditional Formatting for the requirement of showing/hiding table columns or changing their width.

I suggest the following KB articles for details:

 

Tags
General Discussions
Asked by
Sirwan
Top achievements
Rank 1
Answers by
Sirwan
Top achievements
Rank 1
Share this question
or