Tab load Grid
Page 1 of 110 Replies - 330 Views - Last Post: 03 October 2012 - 03:21 AM
#1
Tab load Grid
Posted 01 October 2012 - 08:52 AM
Does anyone know how i get a grid to load when i click on the tab.
Replies To: Tab load Grid
#2
Re: Tab load Grid
Posted 01 October 2012 - 09:04 AM
Personally, though, the way I've dealt with the tab control in the past was to use the events surrounding a tab being selected, rather than the click events. Some folks still use the keyboard, you know.
This post has been edited by Skydiver: 01 October 2012 - 09:04 AM
#3
Re: Tab load Grid
Posted 01 October 2012 - 12:35 PM
Quote
If you can't figure out whether or not it loads when you click, then what are we supposed to work with?
#4
Re: Tab load Grid
Posted 01 October 2012 - 09:59 PM
inkey, on 01 October 2012 - 08:52 AM, said:
Does anyone know how i get a grid to load when i click on the tab.
It is hard to understand your question saying it does not load when you click the tab but loads when you click. Click what?
It would be better to rephrase your question and send us more details about what you are trying to do.
#5
Re: Tab load Grid
Posted 02 October 2012 - 12:40 AM
Take the code from your DGV click event and put it into the tab's selected event.
#6
Re: Tab load Grid
Posted 02 October 2012 - 01:45 AM
I have created a number of different tabs. Inside each tab i have placed a grid. The grid does not load when the tab has been selected. The grid will only appear on a click event. Is there a way to make a grid load when a tab has been selected.
#7
Re: Tab load Grid
Posted 02 October 2012 - 02:06 AM
#8
Re: Tab load Grid
Posted 02 October 2012 - 02:19 AM
MrShoes, on 02 October 2012 - 02:06 AM, said:
Theres no event for load on tab click?
#10
Re: Tab load Grid
Posted 03 October 2012 - 01:13 AM
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
// Code to run when SelectedIndex changes
if (goodproducttab.SelectedIndex == 0 )
{
GoodProductGrid_Load(sender, e);
}
}
#11
Re: Tab load Grid
Posted 03 October 2012 - 03:21 AM
|
|

New Topic/Question
Reply



MultiQuote






|