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

Can you help? GCC cell values from clicked row

Thread ID:

Created:

Updated:

Platform:

Replies:

55469 Jan 30,2007 08:18 PM UTC Jan 31,2007 11:57 AM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 30, 2007 08:18 PM UTC

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 31, 2007 12:34 AM UTC

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

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

Administrator [Syncfusion]
Replied On January 31, 2007 02:17 AM UTC

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 11:57 AM UTC

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.

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

;