I know that Microsoft is pushing developers to use the DataGrid server control rather than manually coding HTML tables. I've spent the past two days evaluating the DataGrid control and have had no luck finding a way to do the following tasks. Can anyone confirm whether or not these tasks are possible with the DataGrid control? If they're not, I'll be abandoning the DataGrid control and going back to the old, though a little more effort, way of doing things.
-----------------------------------------------------------
1. Create a column using <asp:templateColumn> control that lists radio buttons, and dynamically program the "ID" property of the radio button with a value from a database, (e.g., the key ID field from the database).
2. My datagrid returns a bit value from my database ('True' or 'False' text appears in datagrid). I want the datagrid to show text such as 'Enabled' for True values, and 'Disabled' for False values.
3. My datagrid returns a bit value from my database ('True or 'False' text appears in datagrid). I want the datagrid to show one image file for the True values, and another image for the False values.
-----------------------------------------------------------
1. Create a column using <asp:templateColumn> control that lists radio buttons, and dynamically program the "ID" property of the radio button with a value from a database, (e.g., the key ID field from the database).
2. My datagrid returns a bit value from my database ('True' or 'False' text appears in datagrid). I want the datagrid to show text such as 'Enabled' for True values, and 'Disabled' for False values.
3. My datagrid returns a bit value from my database ('True or 'False' text appears in datagrid). I want the datagrid to show one image file for the True values, and another image for the False values.