G
Guest
Hi,
I have a datagrid which contains 3 columns. Two of them are Bound Column
types and the third one is Button Column. When I click on one of the rows in
that Button Column, I would like to highlight that row. I have already set
the SelectedItemStyle property in the designer But I am knowing when it will
work. It is not highlighting the row. If I highlight the row inside the
datagrid1_ItemCommand event using e.Item.BackColor =
datagrid1.SelectedItemStyle.BackColor, e.Item.ForeColor =
datagrid1.SelectedItemStyle.ForeColor then it is highlighting the row but the
problem is when I click on another row it is not removing the highlighted
colors from the previously selected row. It is highlighting all the rows that
were clicked until then. please let me know how to do that.
Thanks,
Sridhar.
I have a datagrid which contains 3 columns. Two of them are Bound Column
types and the third one is Button Column. When I click on one of the rows in
that Button Column, I would like to highlight that row. I have already set
the SelectedItemStyle property in the designer But I am knowing when it will
work. It is not highlighting the row. If I highlight the row inside the
datagrid1_ItemCommand event using e.Item.BackColor =
datagrid1.SelectedItemStyle.BackColor, e.Item.ForeColor =
datagrid1.SelectedItemStyle.ForeColor then it is highlighting the row but the
problem is when I click on another row it is not removing the highlighted
colors from the previously selected row. It is highlighting all the rows that
were clicked until then. please let me know how to do that.
Thanks,
Sridhar.