Click here to Skip to main content
11,708,116 members (64,130 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET DataGrid
Hello I am having a problem with my datagrid control, it shows like an extra column at the end and I would really like to know how to remove it. Here is the picture of the problem
http://i4.photobucket.com/albums/y134/s3b4k/datagridproblem_zps3881ad01.png

Now this only occurred when i changed the row span because i need to allocate the time for a course.
e.items.cells[].rowspan=6;
If i set don't set it all i get this which works fine but it doesn't cover the blocks i need for a course.
http://i4.photobucket.com/albums/y134/s3b4k/datagridnoproblem_zps3e1a7380.png[^]
Posted 14-Oct-12 1:29am
Edited 14-Oct-12 3:35am
(no name)115.6K
v3
Comments
sinhasourabh at 14-Oct-12 8:27am
   
Did you checked the AUTOGENERATED COLUMN property of the gridview. if yes, then uncheck it.
guidingstructures at 14-Oct-12 11:26am
   
yeah i tried but nothing gets rendered
Sandeep Mewara at 14-Oct-12 10:46am
   
Looks like rowspan count is incorrect based on the final UI.
guidingstructures at 14-Oct-12 11:26am
   
How would i adjust it to get the correct value ?
AshishChaudha at 15-Oct-12 2:29am
   
Could you please share your code??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 230
1 OriginalGriff 183
2 Mika Wendelius 180
3 Sergey Alexandrovich Kryukov 149
4 Peter Leow 130
0 OriginalGriff 9,198
1 Sergey Alexandrovich Kryukov 8,562
2 CPallini 5,189
3 Maciej Los 4,921
4 Mika Wendelius 3,856


Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 14 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100