my dataset have the column in col1,col2,col3 when i bind that dataset to datagrid it will display col1,co0l2,col3 but i want display that as col2,col1,col3 waht can i do ,as well as if any one have the idea about how to place the combobox in grid view plz send me ....
Thanks & Regards
M.Koteswararo
Loading
Sam HobbsPosted Jul 25, 2010, 4:09 PM
Koteswararao MallisettiPosted Jul 24, 2010, 11:57 AM
ajay rajuPosted Jul 24, 2010, 6:22 AM
hi, use this
<asp:GridView ID="gridview1" runat="server">
<Columns>
<asp:BoundField DataField="Cell2" HeaderText="Cell2" />
<asp:BoundField DataField="Cell1" HeaderText="Cell1" />
<asp:BoundField DataField="Cell3" HeaderText="Cell3" />
<asp:TemplateField>
<ItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server">asp:DropDownList>
ItemTemplate>
asp:TemplateField>
Columns>
asp:GridView>
if it may helps you please mark as accept answer.
Thanks.
Raghavendra UPosted Jul 23, 2010, 7:51 AM
Koteswararao MallisettiPosted Jul 23, 2010, 6:38 AM