Amit Joshi

Amit Joshi

  • NA
  • 31
  • 6.5k

Dynamically adding Tabs and Gridview Inside those tabs.

Sep 25 2018 4:19 AM
Hi, I am stuck in a scenario, could you please help me out with this?
 
The scenario is - I have a DataSet and some tables in it which will be loaded at run time so basically I don't know how many tables are there in DataSet and what will be there names. Now I want to create tabs at run time same as the Table names available in DataSet at run time for ex:- If there are 3 tables names 'A', 'B' and 'C' in DataSet then 3 tabs should be created with names 'A', 'B' and 'C', if more than / less than that then same bumber of tabs should be created. After this I want one GridView in each tab and want to bind the table data in run time with this grid, so basically when I will click on 'A' tab, date from 'A' table should be bind in the associated GridView and so on.
 
Apart from this I want 4 static columns for each grid - Column1- Checkbox (with select all) so that I can select the records and perform some action on the selected records. Column2- A dropdown which user can select at run time with 3-4 values like 'X', 'Y', 'Z' etc. Column3- Text box so that user can type some value in it. and one blank non editable column in which I will update an hyperlink after performing action.
 
An last thing there will be a button after the GridView and on clicking this button I have to perform some task which will take 5-10 minutes so till then there should be any loader image or progress bar should be displayed.
 
I have looked for so many solutions but couldn't find any one solving my problem. I also tried with Repeater control but couldn't complete it.
 
I will be thankful to you if you guys can help me out with this problem.
 
Thanks in Advance 

Answers (3)