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.
ADAdministrator Syncfusion Team May 18, 2006 08:37 AM UTC
Hi Nick,
Try this code to select a row in a Grid. Here is a code snippet.
this.gridDataBoundGrid1.ListBoxSelectionMode = SelectionMode.One
Best Regards,
Haneef
ADAdministrator Syncfusion Team May 18, 2006 09:02 AM UTC
Hi Nick,
Sorry for the inconvenience caused.
To check the selection type, you need to handle the Grid.Model.Selectionchanging event. Here is a code snippet.
//Form Load.
this.grid.Model.SelectionChanging +=new GridSelectionChangingEventHandler(Model_SelectionChanging);
GridRangeInfo info = this.grid.Model.SelectedRanges.ActiveRange;
if(info.IsRows)
{
Console.WriteLine("Row Selection");
}
else if(info.IsCols )
{
Console.WriteLine("Column Selection");
}
else if(info.IsTable )
{
Console.WriteLine("Table Selection");
}
else if(info.IsCells)
{
Console.WriteLine("Cell Selection");
}
else
Console.WriteLine("Empty Selection");
Let me know if this helps.
Best Regards,
Haneef