Swapping Rows and columns

Newbie Member
14Aug2009,21:39   #1
Beaustark's Avatar
Hi,
I want show the database table column as a row in the gridview. How can i so that?
Go4Expert Member
26Aug2009,11:03   #2
shency's Avatar
Ask naimish, he is really good at .Net
naimish likes this
Banned
26Aug2009,11:14   #3
naimish's Avatar
Try with below example

Quote:

private void OnCellPainting(object sender,
DataGridViewCellPaintingEventArgs e)
{
if (e.ColumnIndex < 0)
{

e.Graphics.FillRectangle(Brushes.Aqua, e.CellBounds);
e.Handled = true;
}
}