B
Bart
Hi,
I am using C# and want to highlight an entire row in a
DataGrid when I click the row. I tried this in VB and it
works, however in C# I cannot get it to work properly.
I have an MousDown event that tells me which row I
clicked and then I try to do:
dgCustomers.CurrentCell = new DataGridCell(hti.Row,
hti.Column);
dgCustomers.Select(hti.Row);
This selects the row, but doesn't give it the highlight
look you get when you click the rowheader in a datagrid.
(Note: Datagrid is disabled for editing as well)
Is there another event that fires after you click on a
cell that has to be overriden in C#? Because the same code
( 2 lines )works fine in VB.net
thanks in advance,
Bart
I am using C# and want to highlight an entire row in a
DataGrid when I click the row. I tried this in VB and it
works, however in C# I cannot get it to work properly.
I have an MousDown event that tells me which row I
clicked and then I try to do:
dgCustomers.CurrentCell = new DataGridCell(hti.Row,
hti.Column);
dgCustomers.Select(hti.Row);
This selects the row, but doesn't give it the highlight
look you get when you click the rowheader in a datagrid.
(Note: Datagrid is disabled for editing as well)
Is there another event that fires after you click on a
cell that has to be overriden in C#? Because the same code
( 2 lines )works fine in VB.net
thanks in advance,
Bart