473,394 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

question regarding comboboxes in datagrid

I have a datagridview with 5 comboboxes. After selecting choices in the
first row, when the user move on to or enter into the combobox in the
next row, the selection from the previous row displays (as selected
value). The user assumes that as the selected value and may move on.
However once he leaves the combobox, the selectedindex is -1, and hence
nothing is selected.
I am still trying to figure out how can I set the selected value to -1,
when the user enters into the combobox.

Another question regarding textboxcolumns in datagridview. When the
user try to save the form without entering any value into the textbox,
my validation code gives an error message. Now when the user click back
in the textbox to type, the textbox is somehow allowing only 1
character to be entered. Somehow on every keystroke the text in the
textbox is being selected, and hence user is keep overwriting what he
had entered. Any suggestion on what i may be doing wrong, or what
handler do I need to fix this error.

Oct 11 '06 #1
0 948

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: RFickling | last post by:
Hi, I have implemented a DataGrid with ComboBoxes in it using the DataGridComboBoxColumn class from the MSDN article. My problem is that I would like to make the combobox disappear when an item...
6
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is...
3
by: Marcelo | last post by:
Hello, I am trying to create a postback event, and it is working, just not calling the sub. I have a datagrid which has <asp:DataGrid id="Mensajes" ... <Columns> <asp:HyperLinkColumn ....
5
by: Manny Chohan | last post by:
i have the following situatin: In datagrid i click on hyperlink button to navigate to the detail.aspx page which displays detailed information regarding item id passed from datagrid. Can i put...
1
by: Marius Trælnes | last post by:
Hello! I have a datagrid and in that I have two comboboxes, 1 is category and 2 is subcategory. I only want to show the sub categories for the selected category. (As in: when category A selected...
4
by: Mark | last post by:
Hi Forum, I'm new to ASP.NET and have a basic question. If someone is willing to lay it out for me in an easy way to understand, I have a huge list of tasks I'm willing to pay to get...
1
by: hcs | last post by:
Hello, on a datagrid when you alter the dataset and want to show the new dataset you use datagrid.refresh(). how is this possible on a form which is based on a dataset and consists of a number...
6
by: Sam | last post by:
Hi, I have a datagrid which has (amongst other stuff) 2 comboboxes columns. So far so good. The trick is that when I select a value in my first column, it must updates the items of the combobox in...
2
by: Reidar | last post by:
I am making a datagrid with one table. In this datagrid I change som columns from textboxes to comboboxes. The comboboxes has datasource from another table, displaymember is the textfield from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.