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. Image for the cookie policy date

Extracting current row cell values

Hi,
What is the best/easiest way of extracting the data from a cell for the currently selected row. I am intercepting the TableControl_CurrentCellActivating event but how do I access e.g. the contents of the "Column1" cell in this event?
Thanks
Paul

3 Replies

AJ Ajish Syncfusion Team August 30, 2007 01:56 AM UTC

Hi Paul,

Thank you for your patience. In the event, the record value is retrieved and using GetValue method of record to retrieve the value the cell.

>>>>>>>
private void gridGroupingControl1_TableControlCurrentCellActivating(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellActivatingEventArgs e)
{
Record rec = e.TableControl.Table.DisplayElements[e.Inner.RowIndex].GetRecord();
Console.WriteLine(rec.GetValue("ID"));
}
>>>>>>>

Kindly try the above and let me know if you need any further assistance.

Regards,
Ajish.



PS Paul Sullivan August 30, 2007 10:55 AM UTC

Thanks Ajish, that works perfectly.
Is there any more comprehensive Syncfusion documentation available than the installed help files which are very very basic? I have to come to this forum nearly every day to solve such small problems.
Paul


AJ Ajish Syncfusion Team August 30, 2007 10:04 PM UTC

Hi Paul,

Thank you for your response. Please refer to our Evaluation center articles, browser samples and KB articles for more information.

In v5.1 version, our browser samples are refractor for easy understanding for our customers. Also refer to our latest online documentation for information.
http://www2.syncfusion.com/library5/index.htm

Evaluation center articles
http://www.syncfusion.com/support/evalcenter/default.aspx?cNode=5

KB articles
http://www.syncfusion.com/support/kb/grid/Default.aspx

You can post your queries on our D-Trac Incident for any issues. This helps you to get a reliable and faster solution.
Kindly let know if you need any further assistance.

Regards,
Ajish.

Loader.
Live Chat Icon For mobile
Up arrow icon