The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I just went thru the code snippet where from u can extract the selected row from a databound grid! will the same work for Grid control and Grid control base?
Plz respond back quickly! Its very urgent! We have been struck up here
ADAdministrator Syncfusion Team November 11, 2005 01:30 PM UTC
You can try this code snippet to get the selected current row:
this.gridControl1.SelectionChanged += new Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventHandler(this.gridControl1_SelectionChanged);
private void gridControl1_SelectionChanged(object sender, Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventArgs e)
{
//For GridControl
Console.WriteLine("Row {0} selected in GridControl",this.gridControl1.Selections.Ranges.ActiveRange.Top);
}
this.gridDataBoundGrid1.Model.SelectionChanged+=new GridSelectionChangedEventHandler(Model_SelectionChanged);
private void Model_SelectionChanged(object sender, GridSelectionChangedEventArgs e)
{
//For GridDataBoundGrid
Console.WriteLine("Row {0} selected in GridDataBoundGrid",this.gridDataBoundGrid1.Selections.Ranges.ActiveRange.Top);
}
Let us know if this helps.
Best Regards,
Jeba.
ADAdministrator Syncfusion Team November 11, 2005 01:32 PM UTC
You can try this code snippet to get the selected current row:
this.gridControl1.SelectionChanged += new Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventHandler(this.gridControl1_SelectionChanged);
private void gridControl1_SelectionChanged(object sender, Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventArgs e)
{
//For GridControl
Console.WriteLine("Row {0} selected in GridControl",this.gridControl1.Selections.Ranges.ActiveRange.Top);
}
this.gridDataBoundGrid1.Model.SelectionChanged+=new GridSelectionChangedEventHandler(Model_SelectionChanged);
private void Model_SelectionChanged(object sender, GridSelectionChangedEventArgs e)
{
//For GridDataBoundGrid
Console.WriteLine("Row {0} selected in GridDataBoundGrid",this.gridDataBoundGrid1.Selections.Ranges.ActiveRange.Top);
}
Let us know if this helps.
Best Regards,
Jeba.