Hi Kennedy,
Sorry for
the delay in getting back to you.
We have
analyzed your query and you can get the Column name & Current Cell value by
using below code snippet.
Code snippet[C#]:
this.syncgrid.ModelLoaded
+= new EventHandler(syncgrid_ModelLoaded);
void
syncgrid_ModelLoaded(object sender, EventArgs e)
{
this.syncgrid.SelectedItems.CollectionChanged
+= new
System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedItems_CollectionChanged);
}
void
SelectedItems_CollectionChanged(object
sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs
e)
{
var index = this.syncgrid.Model.CurrencyManager.CurrentCell.CellRowColumnIndex;
var CellText = this.syncgrid.Model[index.RowIndex,
index.ColumnIndex].CellValue;
var ColumnName = this.syncgrid.VisibleColumns[index.ColumnIndex].HeaderText;
}
|
Please let
us know if you have any queries.
Regards,
Gobinath A.