| Scrolling a DataGrid Thru Code |
|
 |
Index ‹ Windows Forms ‹ Windows Forms Data Controls and Databinding
|
- Previous
- 1
- Windows Forms Data Controls and Databinding menu strip and mdi in vb 2005
hi,
i am using visual basic 2005. i have an mdi parent form and i added a menu strip for that with 2 menus.
forms-form1,form2, form3(sub items)
and reports-report (rpt 1, rpt 2...)
i wrote code to display form 1, form2...when i click on each form.
form1, form2 etc are other forms in the application and i set the window state to maximised for all and ismdichild property to true.
when im running the application when i click on each menu item, the corresponding form is getting diaplayed, but it the menu items are not displayed. i mean the forms are not coming as child forms. i have to close the form1 to see mdi form.
how can i solve it
Binu
- 2
- 3
- Windows Forms Data Controls and Databinding combobox cell in DataGridViewHi,
I am using the DataGridView control in one project and have a small problem. I have defined a combobox for one cell, and populate predefined values in it, but how can i get the combox's current listindex without going through all of its values say the combobox is in the cell : DataGridView1(1,2), i couldn't find any property to tell me which index value the combobox is currently showing.
- 4
- Windows Forms General how to create a resizable custom controlI need to create a resizable custom control. I inherit from usercontrol and create an handler for the OnPaint event, then I need to detect when cursor is over the edge of the control (a simple rectangle) and if the left button is pressed and the mouse dragged, resize the control.
I read about using drawgrabhandle method but I'mnot sure what this method does. Can someone help me
- 5
- Windows Forms General Control textbox, promtly
How I can limit textbox control
So, when I must input decimal number, but, if I make mistake and input text or integer, system must alert me that I can input onli decimals numbers. I know for maskedtextbox. Dou you have another choice.
Please help me and thx.
- 6
- 7
- Windows Forms Data Controls and Databinding Using OpenfileDialog and combobox controls in Datagridview cell.
Hi,
I want a DataGridView to have 2 columns named Key and Value.Some rows should have the Value column to be a ComboBox and another row to have Value Column as OpenFileDialog and the rest to be textbox.The values in the combo box are predefined and the rows are also predefined. Below is the sample.
Key Value
1. SampleKey1 SampleValue1 (CellStyle:TextBox)
2. SampleKey2 true (CellStyle:ComboBox with items as true,false)
3. SampleKey3 Folder Path (CellStyle: OpenFileDialog)
4. SampleKey4 SampleValue4 (CellStyle: TextBox)
- ---- (CellStyle: TextBox)
- ---- (CellStyle: TextBox)
- --- (CellStyle: TextBox)
Please provide the help on the same.
- 8
- ClickOnce and Setup & Deployment Projects Getting the MSI Package Path from a custom actionHello,
I need to add licensing functionality to a MSI Package. The package should be shipped together with a license file which will be evaluated by a custom action. The problem is that the current directory in the custom action seems to be the system32 folder. Does anybody have an idea how to access the folder where the MSI package actually is situated from the custom action
Thanks in advance Gerald
- 9
- ClickOnce and Setup & Deployment Projects Web Publishing with multiple connection strings
Hi,
We have two environments available to all users, one for testing and user training, pointing to a database and a live environment pointing to another database. A third is on the developer machines and we all have our own DB running locally. I publish to two different locations for users (live and test) and two links on the users desktop point to either environment, which need different connection strings.
Here's my problem:
Before publishing, I change the connection string to say "Data Source=testserver", but when users start the test app it will fail and the log says:
********** http://d9k2cn1j/Golfbreaks.TheClubhouse/Test/Golfbreaks.TheClubhouse_1_0_0_6/Golfbreaks.TheClubhouse.exe.config did not succeed. **********
But if I had left the connection string as "Data Source=(local)", which is where my Dev DB is, it works fine.
Also, if I change the .config file from "(local)" to "testserver" after a publish in the source directory , the database still points to (local)!!!
Any ideas how I could somehow tell the publisher to use a different .config file depending on where I'm deploying to
Many thanks for your time if anybody could help us.
Sean
- 10
- Windows Forms Data Controls and Databinding Assign Value to unbound DataGridViewComboBoxColumn
Hi, i have a problem vith comboBoxColumn. i want to assign a value
to unbound comboBox cell and when i change its index want it to fire an event. I use CellFormatting event to assign value like below
private void dataGridView1_CellFormatting(object sender,DataGridViewCellFormattingEventArgs e)
{ //(unVisibleSourceColumn is unvisible and belongs to bound dataset)
if(dataGridView1.Columns[e.ColumnIndex].Name.Equals("comboColumn")) {
e.Value = Convert.ToString(dataGridView1.CurrentRow.Cells["unVisibleSourceColumn"].Value)}
}
At that point, assign unVisibleSourceColumn's value to combo just for new row . Registered SelectedIndexChanged event for combo in EditingControlShowing . The code in combo_SelectedIndexChanged is below
private void combo_SelectedIndexChanged(object sender, EventArgs e)
{
UpdateDataSetsUnVisibleSourceColumnValue()
// here just updates value of currentRows unVisibleSourceCells value for bound dataset
}
After this, the program seems to enter infinite loop because of CellFormatting (P4 CPU %100 and crashes)
My question is, why it calls CellFormatting continuously except just one time and if anyone have suggestion for that case:
datagridView is bound to a dataset, an unbound DataGridViewComboBox is added, want to add first value
to combocell according to sourceColumn in dataset and when changing index of it, updating sourceColumn value. Thanks to everyone..
- 11
- 12
- Windows Forms General Getting a form to appear only once
Hi All,
I have a windows 'Master frame' in which a number of forms can be instantiated (upon the selection of a menu item, or pressing a button in the master toolbar. All of these can be moved around within the boundaries specified in the master frame.
However, I don't want the user to be able to instantiate two instances of the same form in the frame! (E.g. One form is for "Student Details". If they press the student details button once, the form will appear. If they press it again, another form will appear.) Is there an easy way to do this (say in the properties of the form object) Also, if the form already exists, I would like it to set focus to the existing form.
Thanks heaps
Chris (Moderator: Thread moved to Windows Forms General for better responses)
- 13
- 14
- Windows Forms Data Controls and Databinding Populating Serial No Problem
hi i have a datagrid, and i have binded it to a dataset, i have a column called srno and its autogenerated, it works fine,
the problem is when i enter the data for the first time in a row the srno is 1, after entering the data i navigate to the second row, at that time srno is 2, before entering the data in the 2nd row do some alterations in the first row, after finishing alterations in the 1st row i return back to the 2nd row, and suprisingly the srno is now 3,
need help
thanks
Prasenna
- 15
- Windows Forms Data Controls and Databinding ErrorProvider time-delays
Several time-delay properties are exposed for the ToolTip component - AutoPopDelay, InitialDelay, ReshowDelay. These properties are not members of the ErrorProvider class. It seems as though they might be available somehow because the ErrorProvider displays what look like ToolTips, but I can't find the technique. Is there a way
Thanks, Gus
|
| Author |
Message |
NADANASABAPATHY I

|
Posted: Windows Forms Data Controls and Databinding, Scrolling a DataGrid Thru Code |
Top |
Hi,
I am developing a ASP.NET Application using .NET Framework 1.1. I have a data grid control with a scroll bar. When I select any row in the data grid the page gets refreshed. After refreshing I want to scroll the data grid to the last selected item. Is it possible thru code or java script
Can anyone help
Thanks in Advance
Nadanasabapathy.I
Windows Forms9
|
| |
|
| |
 |
| |
 |
Index ‹ Windows Forms ‹ Windows Forms Data Controls and Databinding |
- Next
- 1
- 2
- 3
- Windows Forms General How can I create a tree of control on my Form ?
Hello.
Well, I have a question.
I want to create a tree of my custom controls on my From, whick must looks like a standard tree view (I want to say that I will be able to show or hide nodes and leafes of my tree). What class, standart control or other things can help me to do it
Thanks for help.
- 4
- Windows Forms Data Controls and Databinding creating a dataview
I need to take a look at the content of some DataTable(s) I download from SQL Server in a purely debug situation. I decided to use DataView object for it. I improvised the following code:
DataViewManager mng = new DataViewManager ( sqlDatSet ); DataView dtview = mng.CreateDataView ( sqlDatSet.Tables[jj] ); dtview.BeginInit ( );
The jj integer is the index of a particular DataTable in a DataSet and is found in a for loop.
I expected a primitive form with a Table View displayng my records to show up. Is it not a reasonable expectation Nothing like this happened. The DataView remained an internal object. If I cannot get a good look at what is present in the tables I download I will be facing a cumbersome task of printing the stuff out via Console.WriteLine () or DEBUG.
I hope you understand my simple problem. Please help.
Thanks you. (Moderator: Thread moved to this forum for better responses)
- 5
- Windows Forms General Key-Based List Control? Hi Everyone,
I was just curious. Is there a Windows Forms List control out there that is "key-based". Basically, I want to display all of my Dictionary items in a List on a form, with the key of each item of the Dictionary being how I access each item in the List.
I've looked at the ListView and ListBox, but it doesn't look like either one would do the trick.
Thanks in advance
- 6
- Windows Forms General only allow user to select value 1 through 4 from listbox,textbox....?
I want to have the user select/input 6 values. They choose/enter 1,2,3, or 4.
I would like them stacked in a vertical fashion.
These values relate to a character string in a listbox
What is the best way to have these values lined up and limit the choices to 1,2,3, or 4
Thank You
ex: (listbox on the left, value on the right)
_____________
| Some string | 1
| Some string | 1
| Some string | 4
| Some string | 3
| Some string | 2
| Some string | 1
-----------------------
- 7
- Windows Forms General Bug or By Design In UserControl
The following is my test control.....I does not know why DesignMode propery alway got false, but on OnHandlerCreated Method I got True......Why
public class TestControl:UserControl {
public TestControl() { MessageBox.Show(this.DesignMode.ToString()); }
protected override void OnHandleCreated(EventArgs e) { base.OnHandleCreated(e); MessageBox.Show(this.DesignMode.ToString()); } }
- 8
- 9
- Windows Forms General ToolStripMenuItem Shortcut on culture change
Hi
When I change the culture of my application I refresh the menu item's text. But how can I change the shortcut text which stays in the old language.
I tried to remove and set again "ShowShortcutKeys", the "ShortcutKeys" and "Visible" with no success. Invalidate() does also not help. The old language is kept.
Is it really necessary to create a new ToolStripMenuItem object
Thank you for assistance.
- 10
- Windows Forms Data Controls and Databinding BindingSource updateHi!
I have a problem with the binding. I have a textBox who is binded on an object representing a "User". When i click on a button, it show me a list of User that can be binded on my textbox. So, when I double-click on a item in the list, I want to update the binding of my textBox with the new item selected. The object is updated, but the binding does not refresh automatically.
How can I solved this problem
p.s.: sorry for my poor english...
- 11
- ClickOnce and Setup & Deployment Projects making a setupfile
I am making a program for a client of ours in Visual Basic Express. The idee is that they put there daily incomes in the program and they send the database back to us. I have tried to make a setupfile through publish. However when I install the program on an other pc, I can't seem to find the database.
Does anyone know where this database should be I have been searching for any mdf-files, but I can't seem to find the one I need.
- 12
- 13
- Windows Forms General Webbrowser preventing enter firing
I have created an MDI which can display 2 types of child windows: a) windows form with textbox control (to display text files) and b) windows form with embedded axWebBrowser. If I only display multiple child windows of the file type, then I can click on any part of the window to bring that child window to the front. However, as soon as I also display a webBrowser type window, I can only change which child window is on the top by clicking on the window title bar, regardless of what "type" of window it is i.e. clicking on any other part of the form will not bring that window to the top although I can input data into that child window, even though it remains at the back. Once I have shown a webbrowser type window, the other child windows continue to exhibit this strange behaviour even if I close the webbrowser child.
Strangely, this behaviour is machine dependent - it works fine on one pc but displays the behaviour described above on another. Both are running IE6. I have checked all my internet options and cannot see any obvious difference.
Is anyone able to make any suggestions of how to correct this behaviour or why it is machine specific. I have searched the internet extensively but seen nothing similar reported anywhere.
- 14
- Windows Forms Data Controls and Databinding Read a value of Datgrid cell...
Hi,
How i can read a value of a cell in DataGridView...
I have 2 different types of columns in my application . If user selects values of all the 2 columns of 1st row & then he presses a button...so on that button click event i have to display value on my form using 3 lables. My columns are of textbox(1st column) & combobox(2nd column) type.
So how i can read these user selected values & display it on form with lable on button click event...
Thanks in advance,
Vinay
- 15
|
|
|