Asp.net: gridView rotate background color. setting a index column in a DataTable?

Up vote 0 down vote favorite share g+ share fb share tw.

Two questions about grindView and dataTable. How can I set a dataTable index which always counts one up? E.g.

I make a column: Columns. Add(new DataColumn("#")); and when I add a row, the # column is automatically increased? How can I rotate the background color in a gridView?

Asp.net gridview datatable link|improve this question asked Apr 18 '11 at 13:04hansgiller1242 93% accept rate.

Set Rowstyle for gridview backcolour e.g. If you want it from Code side then For particular Column gridview. Columns0.ItemStyle. BackColor = System.Drawing.Color.

Red; For grid gridview. BackColor = System.Drawing.Color.Red.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions