Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding RadioButtons inside DataGrid?

Status
Not open for further replies.

nomi2000

ISP
Feb 15, 2001
676
0
0
CA
hi guys
does anyone knows if i can add a Radio buttons in two columns of datagrid?
thanks
Nouman
 
What do u mean by template column?
how to set it can u explain it more
thanks
nouman
 
create a datagrid

set autogeneratecolumns to false

then use bound columns for the columns you want

then for the column you want to have a radio button

use

<asp:TemplateColumn>
<ItemTemplate>
<asp:radiobutton ID=&quot;radio&quot; Runat=&quot;server&quot; />
</ItemTemplate>
</asp:TemplateColumn>
 
thnanks alot
but i need it to be run in Windows Form DataGrid :(
Nouman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top