Highligting a row in a DataGrid in C# (Sharp)
Hi,
I want to know how can I do the following In C#(Sharp)
In VB 6 For DataGrid property we have Split\Margue Style = dbgHighlightRow.
ie. Row was highlighted and cell was not active.
I am finding the same property in C# to give the same result for DataGrid.
Re: Highligting a row in a DataGrid in C# (Sharp)
Here is your answer:
George Shepherd's Windows Forms FAQ
How can I make my grid never have an active edit cell and always select
whole rows (as in a browser-type grid)?
Check it out at:
http://www.syncfusion.com/faq/winforms/search/856.asp
Re: Highligting a row in a DataGrid in C# (Sharp)
Re: Highligting a row in a DataGrid in C# (Sharp)
if you are trying to find an specific record on a data table the easiest way (for me) is to filter the table or dataview with the specified criteria. If you want the datagrid to show the rows (records) all the time then create a copy of the datatable or the dataview the datagrid is using as datasource or just freeze the screen while filtering; after that, just look for the record number and select the correct row in the datagrid.