P
Patrick
Hello
I try to make a composite control which contains a GridView. My problem is
now, how do I add the <Columns> to this Gridview. I can do
myGridView.Columns.Add(), but it asks for a DatacontrolField, but I didn't
figure out how to create a DataControlField for the following entry:
<asp:CommandField ShowDeleteButton="True" />
<asp:BoundField DataField="UserId" HeaderText="User Id" ReadOnly="True" />
<asp:BoundField DataField="UserName" HeaderText="User Name" />
Can someone help?
Thanks
I try to make a composite control which contains a GridView. My problem is
now, how do I add the <Columns> to this Gridview. I can do
myGridView.Columns.Add(), but it asks for a DatacontrolField, but I didn't
figure out how to create a DataControlField for the following entry:
<asp:CommandField ShowDeleteButton="True" />
<asp:BoundField DataField="UserId" HeaderText="User Id" ReadOnly="True" />
<asp:BoundField DataField="UserName" HeaderText="User Name" />
Can someone help?
Thanks