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.

Can you help? GCC cell values from clicked row

Thread ID:

Created:

Updated:

Platform:

Replies:

55469 Jan 30,2007 03:18 PM Jan 31,2007 06:57 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 30, 2007 03:18 PM

Hi,
I want to extract the values from a row and drop selecte ones into text boxes. So far I can only see

Element el = table.DisplayElements
this.textBoxExt1.Text = el.GetRecord().ToString();

this give me all the data values - I want to get the individual cells in the data row.


Thanks,

Administrator [Syncfusion]
Replied On January 30, 2007 07:34 PM

To retrieve a particular field in a record, you can use

object o = el.GetRecord().GetValue("fieldname");

Administrator [Syncfusion]
Replied On January 30, 2007 09:17 PM

Thanks Clay, that works. Is there a way to do it with the index of the cell rather that the name? Or by looping through the columns, like in Excel VBA?

Dimitri

>To retrieve a particular field in a record, you can use

object o = el.GetRecord().GetValue("fieldname");

Administrator [Syncfusion]
Replied On January 31, 2007 06:57 AM

Given a column index, you can get the field and then get the value using:

int field = this.gridGroupingControl1.TableDescriptor.ColIndexToField(colIndex);
el.GetRecord().GetValue(this.gridGroupingControl1.TableDescriptor.Fields[field]);

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.

;