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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Re-populate Bound Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

3267 Mar 11,2003 03:43 PM UTC Mar 11,2003 06:24 PM UTC WinForms 2
loading
Tags: GridControl
David Gonzales
Asked On March 11, 2003 03:43 PM UTC

I have a form that has a Bound Grid control that I am populating with the contents of a SQL Table (Me.GridDataBoundGrid1.Model.PopulateValues(GridRangeInfo.Cells(0, 1, nRow, nCol), myArray) where myArray is the contents of the table and nRow and nCol are the size of the grid. Now I am trying to re-populate the grid from an Query Dialog that prompts the user for various criteria (ie, Show all rows with County codes = 5, or all rows that have the name 'Fred' in the FirstName field, etc). I am trying to re-query the data and re-populate the grid without having to close the query dialog. Any ideas? Thanks. David

Administrator [Syncfusion]
Replied On March 11, 2003 05:55 PM UTC

With a GridDataBoundGrid, you should not use PopulateValues. Instead you should just set this.gridDataBoundGrid1.DataSource = myDataTable; Then if you use the RowFilter property of myDataTable.DefaultView to impose the filtering you are doing, the filtered view should just appear in the the GridDataBoundGrid with no further work.

David Gonzales
Replied On March 11, 2003 06:24 PM UTC

Thanks much! David.

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

;