I am trying to get information in a color structure to a file then retrieve it for a reconstruction of the page it is on.
The file will not write the Color.Color to a file. (invalid format)
I can write to the file with color.Color.toString
However I have not figured out how to convert the retrieved string back to a color.
The compiler says it cannot convert a string to color. the COLOR part of color.COLOR will
not take a variable holding the color.
Search of available documentation has not turned up an answer. Any Ideas
Answers (1)
0
Hi kalyan
Please refer to this link
https://stackoverflow.com/questions/15129665/how-to-get-the-count-of-records-in-the-datasource-of-the-gridview
Accepted 0
Hi Kalyan,
You may try below code whether it is paging or not once row will bind it will count...
- int totalRow= 0;
- protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- if (e.Row.RowType == DataControlRowType.DataRow)
- {
- totalRow+=1;
- }
-
- }