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 .
You can't. You can make your SITE work that way, but not the whole browser. If you mean the former, then there's tons of info on the web on how to do that using your own system or the built in ones. If you mean the latter, then you have no idea how ASP.NET works, or what it is, and should do some reading on the topic.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Last Visit: 31-Dec-99 19:00 Last Update: 11-Dec-23 9:59