i need more help Usercontrol Datagrid we have bind datagrid like this genrate datatable then bind datagrid client side mention field name like this datagrid how to passparameter datatable and noof fields to bind datagrid somtimes datatable return 2 columns or 3 columns field name different so how to bind and assign client side most urgent.
<
asp:DataGrid ID="Dtg1" runat ="Server" AutoGenerateColumns ="false" Width ="100%" >
<
Columns>
<
asp:TemplateColumn HeaderText ="Field1">
<
ItemTemplate>
<
asp:Label ID="lbl2" runat ="server" Text ='<%#Databinder.eval(Container,"Dataitem.Field1") %>'></asp:Label>
</
ItemTemplate>
</
asp:TemplateColumn>
<
asp:TemplateColumn HeaderText ="Field2">
<
ItemTemplate>
<
asp:Label ID="lbl3" runat ="server" Text ='<%#Databinder.eval(Container,"Dataitem.Field2") %>'></asp:Label>
</
ItemTemplate>
</
asp:TemplateColumn>
</
Columns>
</
asp:DataGrid>
Regards
Kumar