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. Image for the cookie policy date

Dyamic Refresh of GridListControl

HI,

I trying to implement two GridListControls side by side which will be used by the user to select columns from a master list of columns they want to include on a report / screen.


I am setting up my destination Gridlistcontrol as below
DestCols is an ArrayList containg DColObj objects


DestCols.Add(New DColObj("No Columns"))

DColList.BeginUpdate()
DColList.DataSource = DestCols
DColList.DisplayMember = "DColNames"
DColList.ValueMember = "DColNames"
DColList.MultiColumn = True
DColList.ShowColumnHeader = True
DColList.SelectionMode = SelectionMode.One
DColList.ThemesEnabled = True
DColList.FillLastColumn = True
DColList.EndUpdate()


When a user selects a row in the source list control I call the below line of code to add the selected item to DColList GridListControl.
This only refreshes the GridListControl the first time it is called.
How do I refresh the displayed gridListControl when the datasource Arraylist is added to ?

DestCols.Add(SourceCols(SCollist.SelectedIndex))

SourceCols is the ArrayList containing the master list of coloumns
SCollist is the GridListControl displaying the master list of coloumns


2 Replies

SR Sri Rajan Syncfusion Team September 23, 2008 11:51 AM UTC

Hi Geoff,

Thank you for your interest in Syncfusion products.

Here is the minimal sample which implements you requirements. Please try this and let me know if this helps.
http://websamples.syncfusion.com/samples/grid.windows/F76737/main.htm

Best Regards,
Srirajan.



GP Geoff Parker September 24, 2008 09:36 PM UTC

Thanks that helped it is working now.
Cheers


Loader.
Live Chat Icon For mobile
Up arrow icon