PC Review


Reply
Thread Tools Rate Thread

DataGrid redraw problem?

 
 
P
Guest
Posts: n/a
 
      12th Mar 2004
Hi.
Im using a floating textbox to enter data on the DataGrid. Modified an
example found on the net to do this.
My problem is this. Let say I show the editbox placed over a cell in the
grid. Enter some data and hit enter on the device which
calls a method that sets the textbox invisible again. The value of entered
text is transferred to the underlying datasource so the datarow has the
value entered
in the textbox. All is fine so far. The problem is this. Im also using a
scanner device to read text or values that should be entered in this grid.
If im still on the same row and basically in code trap a scan and enter this
new value in the same column I had previously worked with it does not
display until I change the row selection in the grid. The underlying
datasource is getting changed. My theory is that there are some redraw
problems here. After hiding the textbox this area does not seem to recognize
changes until I move row. I have tried calling Update() and Invalidate() on
the grid unsuccessfully. What could I try instead. I dont want to move rows
in code because I have code that should be executed when rowselection
changes.

Please advice

<P>


 
Reply With Quote
 
 
 
 
=?Utf-8?B?c2tpY293?=
Guest
Posts: n/a
 
      12th Mar 2004
Hi

Instead of using the enter key to populate the datagrid You could use the textbox's TextChanged event to insert data into the DataGrid, that way the grid cell will get updated everytime a character is entered into the textbox

hope this helps
skicow
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to force a datagrid to redraw? =?Utf-8?B?RGViaQ==?= Microsoft Dot NET Framework Forms 2 15th Jul 2005 12:49 AM
Re: DataGrid Combobox Column Redraw Problem AR Microsoft Dot NET Framework Forms 0 17th Jun 2005 09:28 AM
DataGrid Combobox Column Redraw Problem AR Microsoft C# .NET 0 17th Jun 2005 09:23 AM
Redraw problem with .NET Datagrid. Kevin Hodgson Microsoft VB .NET 1 31st Aug 2004 11:57 PM
datagrid-redraw reiks Microsoft ASP .NET 0 8th Dec 2003 11:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:06 AM.