408 Topics
|
|
hi there, i have a datagrid view in a form and i have a calender control in one of the cells. when i try to validate it it gives an invalidCastException.(the line is bolded, this is tha place where the error occurs) [CODE] private void dgvActions_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) { … |
|
hi there, i have a combo box cell in the datagrid view and to it the data is loded from the database. w@ i want is when i select a value from the combo box cell the other cells should be filled with the data relating to the value selected. … |
|
I have a datagridview on a form with multiple columns. Three of the columns are expression columns. One column is subtracted from the second and the result is displayed in the third. Everything works great but when I hit the save button and save to the database, all the columns … |
|
hi there, how can i get the row index of the last row in the datagrid view in C#. i have a add button that adds a row to the datagrid view if the three cells in the datagrid view curent row is not null. when i try to add … |
|
hi there, i have a datagridview in that i have coded the CellBeginEdit. how can i attach the CellBeginEdit event in another function that i have implemented in C# ??? thanxxx |
|
hi there, i have a datagrid view which has a combo box and 3 datagrid view text boxes.when the form loads the values form the database adds to the datagrid view combo box. when a value is selected the relevant information is begin taken from the database and displayed in … |
|
hi there, i have a datagrid view with a combo box and 3 datagrid view text boxes in the datagrid view.when the form is loaded the value to the datagrid view ocmbo box is loaded. when u select on a value from the datagrid view combo box the relevant details … |
|
hi there, i have a datagrid view in C#, and in that i have a datagridview combo box. when i start editing it w@ is the event i can trigger. thanx |
|
hi there, i have a datagridview view in a C# .NET form and when in the run time when i want to select the the combo box i have to click on it for 3 times, y is this. how ca i make it to drop down the items in … |
|
hi there, how can i delete or clear the values of the datagridview row, when the datagridview row index is known. how can i do this in C#???? thanxxxxxxxx |
|
hi there, i have a code for the above mentioned property below,when i click a value from the datagridview combo box column the for loop runs 2 times y is that??? what do i have to do for the loop to run once. thanxxxxxxx [CODE] private void dgvSubContract_CurrentCellDirtyStateChanged(object sender, EventArgs … |
|
Hi All, In my application's DataGridView there are 3 ComboBoxColumns. Out of which two are filled by Enumerator type and one from DataSet. I set Generic Class object as DataSource to DataGridView. Based on the values in this object I want those ComboBoxColumns values to be selected and relevant DisplayMember … |
|
Okay so I have a datagrid view I am trying to build (here is the code so far) [CODE] public partial class employeeAlterForm4 : Form { static readInFileDel2 readInFileCall = new readInFileDel2(readInFileClass2.readInFile2); static Employee [] employeeTempArray; ToolTip tooltip1 = new ToolTip(); Panel panel1 = new Panel(); //-------------------------------------------------------------------------------------- public employeeAlterForm4() { … |
|
okay I have been looking all over the web trying certain pieces of code and I have had no luck. I am tired and I really am at a lost right now. I am trying to make it so that when the user mouses over a select set of cells … |
|
hi there, i have a excel file which have purchase order information. the file contains of the information of the user and the the items that he ordered with the order item quantity and the price but there may be any amount of items in the excel sheet. the thing … |
|
A datagridview is sorting numerical values (when clicking the datagridview column header text) in the wrong order based on the initial digit: 1 11 2 200 21 3 3000 4 456 Should instead sort as: 1 2 3 4 11 21 200 456 3000 As the columns are set in … |
|
hi there, i have a datagrid view in a form. when a button is clicked for the first time a new row is added to the daagridview, when i click the button for the second time i want to check whether there is a blank row in the datagrid view, … |
|
All, I have a DataGridView bound to an XML file, then I add an unbound column of checkboxes to the DGV. [CODE] private void btnReconcile_Click(object sender, EventArgs e) { DataSet ds = new DataSet(); ds.ReadXml(txtPath.Text); DataSet modds = new DataSet(); DataTable dt = new DataTable(); dt = ds.Tables[0].Clone(); foreach (DataTable … |
|
OK, in it's simpest terms, I have a custom object (all string Items) which I add to a list of those items. The list is declared as a global variable. One form updates the list, another contains a dataGridView (vs.net 3.5) that displays the list items. The view displays the … |
|
hi, how can i valiadte each cell in a datagrid view seperately, i have one column int which is the 7th column and the 3rd and the 5th are calender control and the first two are combo boxes, and a check box column Question 1: how can i select on … |
|
hi there, how can i add a date time picker in the datagrid view in C# VS 2008 standard edition, there is not datetime picker in the column type in the datagrid view. how can i do this please help me thanx... |
|
I was creating a program that will add the value of the first 2 columns in datagridview when you typed it in then the answer will be displayed in the third column... I want to auto update the third column that if I delete the value of one of first … |
|
when i choose a row of dataGridView with the event Selectionchanged , how to display the record in textboxes ? Thanks. |
|
Hi, I am extracting data from datagridview to Excel. But for columns with so many numbers Excel turns the format to 6,45646E+11 Is there a way that I can prevent this. I tried to use worksheets but I could not even save the data by using that. Here is my … |
|
I have created simple database project, using vb.net, ado.net, oledb, datatable, datagridview. My program is working nice, I just need Help with how to add, delete, update and edit records. Can any one please and please help me in this case, or can provide any good tutorial or source code … |
|
I have a dataGridView with 4 columns. 3 of the columns i want to use a combobox. In the datagridview properties from the design view i already set the columns to DataGridViewComboBoxColumns. how do i from the code set the columns values from a dataset? I can get the data … |
|
Hi everyone:cool:, I'm new in this forum. This is my first post. Can you guys give me any idea about adding a grid control into a combobox (Windows Application)? While developing desktop applications with C# I felt many times that it would be preety good and very useful to have … |
|
I have a datagridview thats bounded to a db and bindingNavigator that has Add/Delete/Save buttons. When I select a row and delete it, the row gets deleted from the datagridview, but when I restart the application, it doesn't get physically deleted from the database. Search suggests putting this code inside … |
|
I have a datagridview with 10 columns. Every month the user will update new info in the grid. I would like to have a datetimepicker next to the binding navigator. The purpose of the datetimepicker is to scroll forward or backward month by month. If scrolling forward the datagridview creates … |
|
Hi! I'm writing a statistical analysis program where I don't know, in advance, how many variables will be involved. I'm having the user enter data for each variable in a datagrid. First I ask for the number of variables. Based on that, I add as many new columns as needed. … |
The End.