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

Dyamic Refresh of GridListControl

Thread ID:

Created:

Updated:

Platform:

Replies:

76737 Sep 22,2008 10:32 AM UTC Sep 24,2008 09:36 PM UTC WinForms 2
loading
Tags: GridControl
Geoff Parker
Asked On September 22, 2008 10:32 AM UTC

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


Sri Rajan [Syncfusion]
Replied On 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.


Geoff Parker
Replied On September 24, 2008 09:36 PM UTC

Thanks that helped it is working now.
Cheers


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

;