Microsoft
Software
Hardware
Network
Question : GridView.Column.Count = 0 When AutoGenerateColumns="True"<wbr />.
What I need to do is to iterate through the header row columns/cells determine if the column was sorted and insert a sort direction arrow. I am unable to iterate through the Header columns/cells. In the gridview ROWCREATED event the GridView.Columns.Count never yealds a value greater than 0. Apparently, this occurs when you have AutoGenerateColumns="True"
. Is there a work around?
Very simple setup of the gridview…
AutoGenerateColumns="True"
Then from code behind… Bind a datatable to the grid.
Result…
ROWCREATED event the GridView.Columns.Count never yealds a value greater than 0
Answer : GridView.Column.Count = 0 When AutoGenerateColumns="True"<wbr />.
any feedback ?
Random Solutions
VSNDSYS.386
USB Falsh Drive keeps asking for Drivers
Programming Help - vb.net/C# app to click in another application window using Win API or sendmessage
Date conversion
left column thing is gone in FrontPage 2003
Unexpected background (GRID) in Microsoft Words
Scripting Problem with IFMEMBER
Display No Rows or No Data Found Message for the Matrix in SSRS
OK to remove "Windows\TEMP ?
Regional settings GREEK , decimal separator "," sql server 2000, But does not update a textbox tha binds to a float field,C# framework 2.0