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.
Unfortunately, activation email could not send to your email. Please try again.

Populate GridControl with DataSet

Thread ID:

Created:

Updated:

Platform:

Replies:

22155 Dec 5,2004 01:33 PM Dec 5,2004 06:58 PM Windows Forms 2
loading
Tags: GridControl
Liliana Faerman
Asked On December 5, 2004 01:33 PM

Hello Clay I write this in my program, i have a ADO .NET Dataset from Clientes (Customers) an i like populate the GridControl, but this not occur, because i see de grid but i not see de data of Clientes (Customers).: ------ Part of conection with de Database ---- string query = "SELECT * from Cliente"; System.Data.DataSet ds = DataHelper.ExecuteDataset(cnn, System.Data.CommandType.Text, query); ---------- End of conection DB --------------- this.grillaClientes.ResetVolatileData(); this.grillaClientes.BeginUpdate(); this.grillaClientes.RowCount = ds.Tables[0].Rows.Count; this.grillaClientes.ColCount = ds.Tables[0].Columns.Count; grillaClientes.Model.PopulateValues(GridRangeInfo.Cells(1, 1, this.grillaClientes.RowCount, this.grillaClientes.ColCount), ds); this.grillaClientes.EndUpdate(); this.Refresh(); Thank for your risponse Regards Liliana

Administrator [Syncfusion]
Replied On December 5, 2004 03:13 PM

Instead of grillaClientes.Model.PopulateValues(GridRangeInfo.Cells(1, 1, this.grillaClientes.RowCount, this.grillaClientes.ColCount), ds); try grillaClientes.Model.PopulateValues(GridRangeInfo.Cells(1, 1, this.grillaClientes.RowCount, this.grillaClientes.ColCount), ds.Tables[0]);

Liliana Faerman
Replied On December 5, 2004 06:58 PM

Thanks Clay!!!! Regards

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.

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.

;