Hello techies, I used DataGridControlButtonColumn to embed a button in datagrid.But the button is visible only if the focus goes to that particular column. I want the button to be visible all the time in all the rows.Any pointers to how to go about this problem wud be of utmost help. Thanks Jagan
jagan79
Posts
-
Making button visible in all rows in datagrid -
c.wav = a.wav + b.wav -
ListView Add DataActually i had commented those two lines . However while posting i had mistakenly uncommented those :doh:. Sorry for the confusion.:(
-
ListView Add DataHmmmm thats interesting... Anyway this is not right way but try this.. private void button1_Click(object sender, System.EventArgs e) { double[] dData = new double[200]; double[] dData2 = new double[200]; ListViewItem newItem = null; for(int i=0;i<200;i++) { dData[i] = Math.Sin(0.09*i); dData2[i] = Math.Cos(0.1*i); newItem= new ListViewItem(i.ToString()); newItem.SubItems[1].Text = dData[i].ToString(); newItem.SubItems[2].Text = dData2[i].ToString(); newItem.SubItems.Add(dData[i].ToString()); newItem.SubItems.Add(dData2[i].ToString()); this.listView1.Items.Add(newItem); } Cheers, Jagan
-
Adding user defined buttons to MessageboxHello ppl, I need a message box with the following buttons. Yes/No/YesToAll/Cancel. MessageBoxButton class doesnot have option for this. Currently i could think of one solution being having a form with its Form border style as FixedDialog and having four buttons in it.. Is there anyother way to do this?Any pointers/suggestions would be helpful. cheers, jagan
-
Disabling a TabPage in TabControlThank you ruchi , that was helpful
-
Disabling a TabPage in TabControlHello sreejith, Thanks for replying back. But i donot want the name of tab which have the focus. Let me expain with an example. Say there are three tabpages - Tabpage tpA,Tabpage tpB,Tabpage tpC in a tabControl and currently user is in Tabpage tpA and clicked on tpB. I want to capture the name of the tab from which the user moved to tpB (either from tbA or tpC).. in otherwords my lastselected tabpage and not the current selected tabpage. Hope i am clear in explaining my problem. Cheers, Jagan
-
SQL server TimeoutThank you guys.. would get back to after i try out this option.. cheers, jagan
-
Disabling a TabPage in TabControlHello ppl, I am using a tabcontrol for desktop client application(C#/ADO.Net),which has a parser in one tab and report Generator as another tab page. I have used multithreading and assigned a worker thread(say backGroundThread)for the application to parse values - So that the application would repaint itself whenever the user switches back and forth between any window and the application. But as i have used Threading, when parsing is in progress, the user is able to navigate through tabs. So I have to disable the rest of the tabpages in Tabcontrol when parsing in progress. I tried to reset the tabpage to Parser tab(Sender TabPage) in TabControl_SelectedIndexChanged(object sender, System.EventArgs e) How do I capture the tabpage(Sender TabPage). i.e name of the tabpage from which the user tried to navigate? I tried to typecast the sender object to get the sender tabpage.BUt i could not get a break through in identifying the source tabpage. System.Windows.Forms.TabControl homeTab = (System.Windows.Forms.TabControl)sender; kindly help me to overcome this problem. Thanks, Cheers, Jagan.
-
SQL server Timeouthello techies, I written a C# application which executes few stored procedures against the database(MSsql 7.0) .While executing stored procs thru my appln, sometimes it throws sql exception saying "Time expired when running the scripts". But it happens only 2 out of every 10 test runs.. Is there a way to overcome this problem rgds, jagan ps; I donot have that many connections to SQL server as well.