Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: detecting keystrokes...How? Pin
TheCardinal14-Oct-06 6:45
TheCardinal14-Oct-06 6:45 
Questiondata stucture Pin
mcrooks14-Oct-06 2:21
mcrooks14-Oct-06 2:21 
AnswerRe: data stucture Pin
Nick Parker14-Oct-06 4:53
protectorNick Parker14-Oct-06 4:53 
GeneralRe: data stucture Pin
mcrooks14-Oct-06 8:10
mcrooks14-Oct-06 8:10 
AnswerRe: data stucture Pin
User 665814-Oct-06 5:29
User 665814-Oct-06 5:29 
GeneralRe: data stucture Pin
mcrooks14-Oct-06 8:12
mcrooks14-Oct-06 8:12 
GeneralRe: data stucture Pin
User 665814-Oct-06 8:26
User 665814-Oct-06 8:26 
QuestionDatabound Control Hell Pin
tcss14-Oct-06 1:30
tcss14-Oct-06 1:30 
Hi
I have a windows form with the following controls on it.
A datagridview and a couple of text boxes.
The text boxes are bound to the same data source as the datagridview so that when I click on a row, the listboxes are populated with the same record shown in the datagridview control. (Note : all the binding is done in code and crated at runtime). This works well until I try to add a record to this datagrid. Being a bound control it does not let me call control.rows.add(etc).

If I click on the "add row" row, I get the correct events and the text fields get cleared. When I click on the text field to add the new data, ALL the text fields are populated with the last record in the datagridview even though the selected record ov the datagridview stays on the Add Record (*) row.

1) How do I get to add a new row to this dataset without going to the extreme of bringing up a new form, populateing the database through 'Good old SQL' and refreshing the database of the grid when I close the form.

2) Can I add a record to this recordset without using the "new row"?


AnswerRe: Databound Control Hell Pin
sam#14-Oct-06 2:28
sam#14-Oct-06 2:28 
GeneralRe: Databound Control Hell Pin
tcss14-Oct-06 2:36
tcss14-Oct-06 2:36 
GeneralRe: Databound Control Hell Pin
sam#14-Oct-06 23:28
sam#14-Oct-06 23:28 
QuestionProblem with Context Switch Deadlock Pin
cnr36914-Oct-06 0:52
cnr36914-Oct-06 0:52 
AnswerRe: Problem with Context Switch Deadlock Pin
S. Senthil Kumar15-Oct-06 7:41
S. Senthil Kumar15-Oct-06 7:41 
Questionhow to export my DataTable To excel 2003 ? Pin
hdv21214-Oct-06 0:45
hdv21214-Oct-06 0:45 
AnswerRe: how to export my DataTable To excel 2003 ? Pin
Nader Elshehabi14-Oct-06 13:19
Nader Elshehabi14-Oct-06 13:19 
Questionplease help me.... Pin
choorakkuttyil14-Oct-06 0:39
choorakkuttyil14-Oct-06 0:39 
GeneralRe: Useless subject Pin
Guffa14-Oct-06 2:54
Guffa14-Oct-06 2:54 
Questionpicture question Pin
rzvme14-Oct-06 0:34
rzvme14-Oct-06 0:34 
AnswerRe: picture question Pin
Stefan Troschuetz14-Oct-06 1:20
Stefan Troschuetz14-Oct-06 1:20 
QuestionHow can i asign dataset to crystal report Pin
btota13-Oct-06 22:35
btota13-Oct-06 22:35 
AnswerRe: How can i asign dataset to crystal report Pin
Nick Parker14-Oct-06 4:56
protectorNick Parker14-Oct-06 4:56 
Question.NET 1.1 application performance in Windows 2003 Server Pin
Sushant Duggal13-Oct-06 22:19
Sushant Duggal13-Oct-06 22:19 
AnswerRe: .NET 1.1 application performance in Windows 2003 Server Pin
Nick Parker14-Oct-06 4:57
protectorNick Parker14-Oct-06 4:57 
QuestionDataGridViewComboBoxCell value is invalid Pin
WillemM13-Oct-06 22:18
WillemM13-Oct-06 22:18 
QuestionBack link Pin
basumca13-Oct-06 21:43
basumca13-Oct-06 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.