We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem with Syncfusion Grid Grouping Control

Thread ID:

Created:

Platform:

Replies:

43120 Apr 15,2006 12:08 PM UTC WinForms 0
loading
Tags: FAQ
Rahul Sharma
Asked On April 15, 2006 12:08 PM UTC

1) I m having a tree view and a datagrid. My task is to fill datagrid as per the item selected in tree view. 2)After assinging datasource to datgrid, I am setting width of columns as per table fetched from dataset. 3) It works perfect with very first table, but when the dataset again gets filled with another table having different numbers of columns it gives error "System.ArgumentOutOfRangeException at "Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor.get_Item(Int32 index)"" 4)If all the tables fetched by dataset contain same number of columns, it display tables in grid, with first column values are proper and rest of the column are empty… Code Snippet ''''''''Get Table as Per Selected Tree Node Mydataset = MyClass.GetDataSetFromStoredProcedure(MyCommandString) Mydatagrid.DataSource = Mydataset.Tables(0).DefaultView ''''''''Set The width of the Columns per Datagrid Width For intColumns = 0 To Mydataset.Tables(0).Columns.Count - 1 ''''''''Giving Error On this Line Mydatagrid.TableDescriptor.Columns(intColumns).Width = Mydatagrid.Width / Mydataset.Tables(0).Columns.Count Next intColumns

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;