this grid is very complicated.
to get this simple task, you need to write so much code!
in the standard ms.datagridview it's so much easier!
why dont you have a simple click or select event that's being fired when the user click/select's a row, and then simply takes the row values?
>Hi Shachar,
This can be achieved by handling the TableControlMouseDown event of th grid and get the value of the required column in record using the record.GetValue() method. Please refer to the attached sample for implementation and let me know if this helps.
private void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.PointToTableCellStyle(new Point(e.Inner.X,e.Inner.Y));
if( style != null )
{
Element el = style.TableCellIdentity.DisplayElement;
if( el.Kind == DisplayElementKind.Record )
{
GridRecordRow rec = el as GridRecordRow;
if( rec != null
&& rec.ParentRecord != null )
MessageBox.Show("FirstColumn Value = " + rec.ParentRecord.GetValue("FirstColumnName") );
}
}
}
Sample :
GGCGetRecord.zipBest regards,
Haneef