Datagrid problem-query
-
hi using Asp.net with C# I have a datagrid where i am calling values from the backend and i am using a radio buttonlist for selecting the values. the problem is that the values are displayed for radiobuttonlist only but in the single sql query i have called other fields for the datagrid which is not getting displayed along with the radiobuttons.Through breakpoint i have found that it not getting bound at the runtime . In my project the user selects data from the previous page comes to this page where details about that data is displayed in the datagrid having radiobuttonlist if the user clicks any option the value gets selected along with the rows in the datagrid to which the button and row is related to .I dont know how to achieve this Can anybody explain me why is it that so?? Any solution for this kal13na13
-
hi using Asp.net with C# I have a datagrid where i am calling values from the backend and i am using a radio buttonlist for selecting the values. the problem is that the values are displayed for radiobuttonlist only but in the single sql query i have called other fields for the datagrid which is not getting displayed along with the radiobuttons.Through breakpoint i have found that it not getting bound at the runtime . In my project the user selects data from the previous page comes to this page where details about that data is displayed in the datagrid having radiobuttonlist if the user clicks any option the value gets selected along with the rows in the datagrid to which the button and row is related to .I dont know how to achieve this Can anybody explain me why is it that so?? Any solution for this kal13na13
Hi there, How do you bind data to the DataGrid control? Code snippets might help. Basically, if you want to dynamically bind a datasource to a radiobuttonlist placed inside the datagrid control, you should create an event handler for the
ItemDataBound
event, then bind data to the radiobuttonlist control after you get refererence to it.