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

Extra (unwanted) first column

4 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PAULO SERGIO CARNEIRO
Top achievements
Rank 1
PAULO SERGIO CARNEIRO asked on 27 Oct 2009, 11:17 AM
Hi everybody!

I have one RadGrid using a DataTable as DataSource.
Everything works fine, except by the fact there is as extra empty column right in the first place in the grid.

Can someone tell me how could I remove this "ghost" column?

Thanks...

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Oct 2009, 11:33 AM
Hello Paulo,

The extra empty column that appears before the set columns is the RowIndicatorColumn which will appear if resizing of rows is enabled in the grid. You can hide it as shown below:
c#:
 protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        RadGrid1.MasterTableView.GetColumn("RowIndicator").HeaderStyle.Width = Unit.Pixel(1); 
        RadGrid1.MasterTableView.GetColumn("RowIndicator").ItemStyle.Font.Size = FontUnit.Point(1);  
    } 

Hope this helps..
Princy.
0
PAULO SERGIO CARNEIRO
Top achievements
Rank 1
answered on 27 Oct 2009, 03:04 PM
Thanks a lot!

It did help !!

Actually I didn't need the Row Resizing, so I removed it and the grid looks fine now!

Be well !!
0
Kamal
Top achievements
Rank 1
answered on 14 May 2015, 03:22 PM

Hello Princy
Your solution works but when I save the grid settings by GridSettingsPersister, that hidden column appears again. However revisiting the page hides that column because of the statements in pre-render.

I'm facing one more issue Princy. In one of my page I have a TemplateColumn (first column) with a hyperlink that opens a custom edit form. It actually hides when I revisit the page after saving the grid settings by GridSettingsPersister. It does not happen with other pages which use the built in GridEditCommandColumn...

Please help.

0
Kostadin
Telerik team
answered on 19 May 2015, 07:36 AM
Hello Kamal,

I already answered your other forum thread so I would suggest you to continue our conversation there and close this one.

Regards,
Kostadin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
PAULO SERGIO CARNEIRO
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
PAULO SERGIO CARNEIRO
Top achievements
Rank 1
Kamal
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or