In my application I am using datagrid to display data.
Each DataGridcolumn is of different color.So I am using
a class MyTextBoxColumn derived from DataGridTextBoxColumn and overriding
base class paint method for coloring purpose.
public class MyTextBoxColumn:DataGridTextBoxColumn
{
protected override void Paint(
System.Drawing.Graphics g,
System.Drawing.Rectangle bounds,
System.Windows.Forms.CurrencyManager source,
int rowNum,
System.Drawing.Brush backBrush,
System.Drawing.Brush foreBrush,
bool alignToRight
)
{
//Some code here
}
}
But when I am trying to select whole row by clicking row
header of a row grid is not showing whole row selected.I
know the reason behind is MyTextBoxColumn's aint method.
How I can get the desired results.
--
A.D.