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

GridViewDataControl_ColumnDisplayIndexOutOfRange Sales Use

1 Answer 47 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nikhil Jain
Top achievements
Rank 1
Nikhil Jain asked on 27 Jan 2011, 08:26 AM
Hi

I am having an Error message : "GridViewDataControl_ColumnDisplayIndexOutOfRange Sales Use
Parameter name: displayIndex"
foreach (ColumnSetting setting in Settings.ColumnSettings)
                    {
                        GridViewDataColumn column = new GridViewDataColumn();
                        column.UniqueName = setting.UniqueName;
                        column.Header = setting.Header;
                        column.DisplayIndex = setting.DisplayIndex;
                        if (setting.Width != null)
                        {
                            column.Width = new GridViewLength(setting.Width.Value);
                              
                        }
  
                        grid.Columns.Add(column);
                    }


1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Jan 2011, 01:07 PM
Hi Nikhil Jain,

I have already replied to the other forum thread you started.
 

All the best,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Nikhil Jain
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or