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
Koteswararao MallisettiRank #2,740 · 511 reputationPosted Jul 23, 2010, 2:38 AM EDT
Raghavendra URank #1,371 · 1.2K reputationPosted Jul 23, 2010, 3:51 AM EDT
ajay rajuRank #4,639 · 333 reputationPosted Jul 24, 2010, 2:22 AM EDT
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.
Koteswararao MallisettiRank #2,740 · 511 reputationPosted Jul 24, 2010, 7:57 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 25, 2010, 12:09 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts