Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP.NET (http://www.go4expert.com/forums/asp-net/)
-   -   Swapping Rows and columns (http://www.go4expert.com/forums/swapping-rows-columns-t19036/)

Beaustark 14Aug2009 21:39

Swapping Rows and columns
 
Hi,
I want show the database table column as a row in the gridview. How can i so that?

shency 26Aug2009 11:03

Re: Swapping Rows and columns
 
Ask naimish, he is really good at .Net

naimish 26Aug2009 11:14

Re: Swapping Rows and columns
 
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;
}
}



All times are GMT +5.5. The time now is 10:16.