I have two controls: a.ascx and b.ascx.
In b.ascx I have a gridview and function B that collects data from gridview and builds a datatable for return.
In a.ascx I have b.ascx and function A that calls function B from b.ascx.
On page (aspx) it calls the A function after button was pressed.
When I'm checking the gridview in b.ascx it's empty despite of fact that I see the grid in explorer.
When I'm using the b.ascx directly on page everything just fine.
You need to drag and drop these controls from sol.n explorer as other controls.If needed you can define some properties and functions for the user controls.These controls can be called both dynamically and statically.
prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading..
prob2 : and the datagrid should consists of text boxs datgrid FOrmat
col1 remaiming columns heading from the above Query
a textbox textbox textbox
b textbox textbox textbox
For prob1, I didn't quite understand your question. I'm not sure how you can make all the rows of the query output be the headings of the datagrid. While displaying the query results, it will be displayed in the query analyser with the headings. That you can bind to the dataset and thereafter to datagrid,so the headings will display. Please correct me if I'm wrong.
For prob 2, please try with the following code:
A) In the HTML window, add the following code inside the datagrid declaration:
<asp:datagrid id="dgrdEditDel" runat="server" width="873px" cssclass="Grid" datakeyfield="PK_Value">
AutoGenerateColumns="False" AllowPaging="True" BackColor="#C0C0FF" HorizontalAlign="Center" Height="376px">
<headerstyle horizontalalign="Center" backcolor="Orange">
<columns> <asp:boundcolumn headertext="Sl.No">
<asp:templatecolumn headertext="No of Days">
<asp:label id="lbldate" runat="server" width="60px" text="">]]>'>
I have a datagrid already binded with dataset. And i have two columns the first column contains Image and the second column contains a table . In the table i have two rows. And in particular column say 2nd row 2nd column i have to create number of linkbutton which i get from another query.
This is way i have done my codes. But i am not able to display Total number of linkbuttons .