I have a relatively simple gridview bound to an product table that displays great. When I do so, the gridviews' Row Data Bound event fires and the values of the text properties of the tablecells in the row evaluate to "" emptystring.
Basically, the scenario I have is that I have a foreign key column in my Grid View that I want to show as a Drop Down List of values.
All samples of course assume you’re doing everything in your page, but I have to do everything in my code-behind, because on forehand I don’t know what I’ll be binding to my Grid View.
This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.
Hi Gurus , It happened to add an extra Gridveiw Header in row_databound event , It did worked fine on ! Can any expert post some pointers , differnces between grid row_created vs row_databount with some sample table data created dynamically behaviour of both the events in ! But again, when I hit the "Edit" button in the first column (the Command Field column) .
Quick google search guided me to move the event to Row_Created event and every thing is okay . Thanks a tonne in Advance and any inputs will be valued and appreciated . I do notice that if I break within the Grid View1_Row Data Bound event during a refresh of the page, the values are there.