New ToCS

New ToCS

  • NA
  • 9
  • 0

Tab & Grid questions

Dec 2 2005 3:41 PM
I have two questions - one on tab control and the next on grid control.

1) I have a tab control with two tab pages. On the first, I created several other controls like some textboxes, grid, combo-box etc. When I click on the second tab page, I want the same set of controls in the first tab page except one additional panel that I want displayed. So I hide the panel that I don't want displayed and add the rest of the controls to the second tab page, and it does what I want. But when I go click on the first tab now, it is all blank. I expected all the controls to display, since they were kind of default on that tab page. What is to be done that I'm missing?

2) In the grid, the very first column I want is a checkbox which is not based on a database value. Jsut a checkbox for every row. The next two columns are from the database table. When I click on the second tab page, the grid should look different. First column should be a checkbox. Next 2 are from the database table and I want to add 2 more based on the table. How can I achieve this?

Please let me know. Any help is greatly appreciated.

Thanks!
QQ