Swapping Rows and columns

Beaustark's Avatar, Join Date: Aug 2009
Newbie Member
Hi,
I want show the database table column as a row in the gridview. How can i so that?
shency's Avatar, Join Date: Oct 2008
Go4Expert Member
Ask naimish, he is really good at .Net
naimish like this
naimish's Avatar
Banned
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;
}
}