Click here to Skip to main content
16,021,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: A question...(?) Pin
theJazzyBrain7-Sep-03 3:49
theJazzyBrain7-Sep-03 3:49 
GeneralRe: A question...(?) Pin
Alvaro Mendez8-Sep-03 9:26
Alvaro Mendez8-Sep-03 9:26 
QuestionCheck if Remoting server is running? Pin
Bog6-Sep-03 12:35
Bog6-Sep-03 12:35 
AnswerRe: Check if Remoting server is running? Pin
Tatham6-Sep-03 19:31
Tatham6-Sep-03 19:31 
GeneralRe: Check if Remoting server is running? Pin
Bog7-Sep-03 8:16
Bog7-Sep-03 8:16 
GeneralAllowing a dialog to read data from the calling main form Pin
tsigo6-Sep-03 10:54
tsigo6-Sep-03 10:54 
GeneralRe: Allowing a dialog to read data from the calling main form Pin
Nick Parker6-Sep-03 11:32
protectorNick Parker6-Sep-03 11:32 
GeneralBindableListview and Column Sort Pin
zinzinlabine6-Sep-03 6:19
zinzinlabine6-Sep-03 6:19 
Hi,

I'm using a BindableListview for which I found the code on the web:

http://www.interact-sw.co.uk/utilities/bindablelistview/source

and I'm also using the ListViewSortManager found on Code Project:

http://www.codeproject.com/cs/miscctrl/lvsortmanager.asp

I have found a funny interaction between the two. After binding the ListView to the DataSource, when the ListView is re-sorted the data gets out of sync.

For testing purposes, I added a few simple controls which also bind to the same DataTable, for instance a TextBox and a CheckBox (one of the column is Boolean).

After setting the ListView and the Controls' DataSource to the same DataTable, the data is synced such that if I select an entry in the ListView, the TextBox and CheckBox show the proper values.

Now, after sorting the data using different columns, the data in the textBox and CheckBox doesn't show the same value as the selected item in the ListView.

I'm assuming this is because the DataBindings are using an index, and that re-sorting the ListView differently doesn't necessarly affect that index.

How would I proceed to "re-index" the data such that clicking an item in the ListView brings up the proper data in the textBox and CheckBox ?

Thanks.

Luc Morin

Generalnewline and label question Pin
gilstelzer6-Sep-03 5:59
gilstelzer6-Sep-03 5:59 
GeneralRe: newline and label question Pin
Mazdak6-Sep-03 8:16
Mazdak6-Sep-03 8:16 
Generalconverting web page into image Pin
andrew ryan6-Sep-03 0:03
andrew ryan6-Sep-03 0:03 
GeneralRe: converting web page into image Pin
Jasper4C#6-Sep-03 2:56
Jasper4C#6-Sep-03 2:56 
GeneralLDAP Pin
Salmanzz5-Sep-03 23:28
Salmanzz5-Sep-03 23:28 
Generalpassing value from modal dialog to an mid form Pin
Birdy5-Sep-03 20:13
Birdy5-Sep-03 20:13 
GeneralRe: passing value from modal dialog to an mid form Pin
Corinna John7-Sep-03 1:07
Corinna John7-Sep-03 1:07 
GeneralReference a MC++ class Pin
monrobot135-Sep-03 20:08
monrobot135-Sep-03 20:08 
GeneralRe: Reference a MC++ class Pin
leppie5-Sep-03 21:38
leppie5-Sep-03 21:38 
GeneralRe: Reference a MC++ class Pin
J. Dunlap5-Sep-03 21:40
J. Dunlap5-Sep-03 21:40 
GeneralRe: Reference a MC++ class Pin
leppie5-Sep-03 21:46
leppie5-Sep-03 21:46 
GeneralRe: Reference a MC++ class Pin
J. Dunlap5-Sep-03 21:50
J. Dunlap5-Sep-03 21:50 
GeneralRe: Reference a MC++ class Pin
monrobot137-Sep-03 11:16
monrobot137-Sep-03 11:16 
QuestionWhat version to buy Pin
cduced5-Sep-03 19:27
cduced5-Sep-03 19:27 
AnswerRe: What version to buy Pin
SimonS5-Sep-03 21:06
SimonS5-Sep-03 21:06 
GeneralRe: What version to buy Pin
cduced6-Sep-03 3:06
cduced6-Sep-03 3:06 
GeneralRe: What version to buy Pin
SimonS6-Sep-03 9:20
SimonS6-Sep-03 9:20 

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.