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

item template column Grid Lines are not visisble when there is no data

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mary
Top achievements
Rank 1
Mary asked on 31 Mar 2011, 07:02 AM
please check the below attached image of grid.the problem  with item template columns,when there is no data the gird lines are not visible.this problem is in IE only not in Mozilla.i tried with gridlines property of grid also mastertableview too

anyone can help me to solve this problem please.

thank you

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Mar 2011, 08:58 AM
Hello,

Probably adding white space( ) to the empty cells will resolve this problem.

C# code:
protected void RadGrid2_PreRender(object sender, EventArgs e) 
    
        foreach (GridDataItem dataItem in RadGrid2.Items) 
        
            foreach (GridColumn col in RadGrid2.Columns) 
            
                if (dataItem[col.UniqueName].Text == string.Empty) 
                    dataItem[col.UniqueName].Text += " ";     
            
        
    }


Also go through the forum for more suggestions on this:
RadGrid Item Missing Border when null


Have a nice day.

Regards,
Princy.
Tags
Grid
Asked by
Mary
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or