Hi,
In my application, I am using DataList. In Item Template I added One GridView and SqlDataSource to populate data in GridView. DataList having one DataKey field, I want to pass this DataKey Value to the SqlDataSource as Parameter.
I tried this by Using Following:
<%-- --%>
In above snippet I hard coded Property Name to DataKeys[0], due to this it return DataKey value of first row only.
Here I need ProperyName which gives the DataKeys value for every row at the time of ItemDataBound. The Value 0 should be replaced with something thats where I stuck.......
Any Help Appreciated.........
Thanks,
VIkram
VikramPosted May 28, 2010, 5:42 AM
I tried that also but in vain. I resolve this issue by removing SqlDataSource and Binding Data to Gridview in the ItemDataBound Event.
Dipa AhujaPosted May 27, 2010, 8:33 AM