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

How to get the current table row

Thread ID:

Created:

Updated:

Platform:

Replies:

19788 Oct 4,2004 04:45 PM UTC Oct 5,2004 04:45 PM UTC WinForms 4
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On October 4, 2004 04:45 PM UTC

C#, In GridGroupingcontrol, When I click on a CELL in the grid, I want to raise a event to send CURRENT CELL''s underneath table''s row data. Where should I put the rasie event code? How I can get the CURRENT CELL''s underneath table''s row (DataRow)? TIA

Administrator [Syncfusion]
Replied On October 4, 2004 05:22 PM UTC

Maybe the TableCOntrolCellClick event will work for you.
private void gridGroupingControl1_TableControlCellClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellClickEventArgs e)
{
	GridRecord rec = this.gridGroupingControl1.Table.CurrentRecord as GridRecord;
	if(rec != null)
	{
		DataRowView drv = rec.GetData() as DataRowView;
	}
}

Administrator [Syncfusion]
Replied On October 5, 2004 02:10 PM UTC

Thank you for help. It works. But I got side-effect problem. When I click a cell with drop-down list, the drop-down list does not appear because of the "CLICK" event. I guess we should not put the code in "TableControlCellClick" event, instead, we should put the code in event like "Grid Selected Row Changed"? But I don''t know which Grid event? TIA >Maybe the TableCOntrolCellClick event will work for you. >
>private void gridGroupingControl1_TableControlCellClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellClickEventArgs e)
>{
>	GridRecord rec = this.gridGroupingControl1.Table.CurrentRecord as GridRecord;
>	if(rec != null)
>	{
>		DataRowView drv = rec.GetData() as DataRowView;
>	}
>}
>

Administrator [Syncfusion]
Replied On October 5, 2004 04:19 PM UTC

You could try TableControlCurrentCellMoved.

Administrator [Syncfusion]
Replied On October 5, 2004 04:45 PM UTC

Thank you! That works. >You could try TableControlCurrentCellMoved.

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

;