Advertisement

05.21.2008 at 08:58AM PDT, ID: 23421414
[x]
Attachment Details

Adding Columns and Rows dynamically in GridView

Asked by immtrac in Programming for ASP.NET

Tags: ASP.NET, VB.NET

I need some serious help here.

I have a Grid View in ascx file. Simple Like this:

<asp:GridView ID="grdFamily" runat="server">

</asp:GridView>

First:

I need to add columns dynamically to this GridView. I am pulling how many and what columns I need from table.

e.g  A         B             C           D          E          F

Second.
Then I need to add rows filled with control under these columns.
Again I have a table from which I will be pulling what type of control are these. Then I need to bind these controls.

e.g 1 mean text box, 2 means drop down etc.

e.g. I need to fill drop down list with data



Third.
Then I need to bind the GridView with a dataset.

------------------In simple, every thing is dynamic.

Can you please help me?
Start Free Trial
 
Loading Advertisement...
 
[+][-]05.21.2008 at 10:49PM PDT, ID: 21621222

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Tags: ASP.NET, VB.NET
Sign Up Now!
Solution Provided By: sammy1971
Participating Experts: 3
Solution Grade: B
 
 
[+][-]05.22.2008 at 07:10AM PDT, ID: 21623943

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 07:58AM PDT, ID: 21624377

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 10:07PM PDT, ID: 21629504

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628