Click here to Skip to main content
15,897,718 members
Home / Discussions / C#
   

C#

 
AnswerRe: Applying Separator in Combo Box....help plz! Pin
DaveyM692-Apr-09 10:09
professionalDaveyM692-Apr-09 10:09 
GeneralRe: Applying Separator in Combo Box....help plz! Pin
Rajdeep.NET is BACK2-Apr-09 10:49
Rajdeep.NET is BACK2-Apr-09 10:49 
QuestionDrawLine on Panel? Not saving? Pin
Jacob Dixon2-Apr-09 9:03
Jacob Dixon2-Apr-09 9:03 
AnswerRe: DrawLine on Panel? Not saving? Pin
Colin Angus Mackay2-Apr-09 9:21
Colin Angus Mackay2-Apr-09 9:21 
GeneralRe: DrawLine on Panel? Not saving? Pin
Jacob Dixon2-Apr-09 9:23
Jacob Dixon2-Apr-09 9:23 
GeneralRe: DrawLine on Panel? Not saving? Pin
Colin Angus Mackay2-Apr-09 9:31
Colin Angus Mackay2-Apr-09 9:31 
GeneralRe: DrawLine on Panel? Not saving? Pin
Jacob Dixon2-Apr-09 9:48
Jacob Dixon2-Apr-09 9:48 
QuestionBinding in-memory data to a DataGridView Pin
StevenS_Dev2-Apr-09 8:38
StevenS_Dev2-Apr-09 8:38 
I want to bind an in-memory data class to a DataGridView using the DataSource member. I have read several ways of doing this and have implemented and tried several but once I set the DataSource, I then lose the ability to sort.

I want to display my data class inside of a grid. I can use a List (List < MyDataClass >, for example) which works but I lose sorting. I can get sorting back, but I have to create my row like this

<br />
object[] row = {MyDataClass.FirstName, MyDataClass.LastName};<br />


which then removes the binding to the actual objects.

I've now been trying to use DataSets and DataTables, but I still lose my binding. And the columns are not automatically generated from the exposed properties, like when I use a List collection.

My next step is to create a class implementing the IBindingList interface. Will this be what I want? Any help or advice is greatly appreciated. Thanks.

Oh, another wrench in the idea is that I want to flatten out the object. So my object may contain other objects which I want to also display in the table as part of the same row. I was thinking there was a way to bind a specific grid column to an object's property, but I haven't been able to find that yet.
AnswerRe: Binding in-memory data to a DataGridView Pin
Mycroft Holmes2-Apr-09 11:04
professionalMycroft Holmes2-Apr-09 11:04 
GeneralRe: Binding in-memory data to a DataGridView Pin
StevenS_Dev2-Apr-09 12:12
StevenS_Dev2-Apr-09 12:12 
GeneralRe: Binding in-memory data to a DataGridView Pin
Henry Minute2-Apr-09 15:04
Henry Minute2-Apr-09 15:04 
GeneralRe: Binding in-memory data to a DataGridView Pin
StevenS_Dev3-Apr-09 13:22
StevenS_Dev3-Apr-09 13:22 
Questioncalling method/event of one form from another Pin
Sandeep Kalra2-Apr-09 8:22
Sandeep Kalra2-Apr-09 8:22 
AnswerRe: calling method/event of one form from another Pin
Colin Angus Mackay2-Apr-09 9:17
Colin Angus Mackay2-Apr-09 9:17 
GeneralRe: calling method/event of one form from another Pin
Sandeep Kalra2-Apr-09 18:09
Sandeep Kalra2-Apr-09 18:09 
Questionnetworkable sign in sign out board C# Pin
Rafone2-Apr-09 6:25
Rafone2-Apr-09 6:25 
AnswerRe: networkable sign in sign out board C# Pin
Skymir2-Apr-09 9:47
Skymir2-Apr-09 9:47 
QuestionCSV File Splitter Help... Pin
Alistair Jarrett2-Apr-09 5:36
Alistair Jarrett2-Apr-09 5:36 
AnswerRe: CSV File Splitter Help... Pin
Judah Gabriel Himango2-Apr-09 5:52
sponsorJudah Gabriel Himango2-Apr-09 5:52 
AnswerRe: CSV File Splitter Help... Pin
Le centriste2-Apr-09 5:52
Le centriste2-Apr-09 5:52 
AnswerRe: CSV File Splitter Help... Pin
DaveyM692-Apr-09 6:02
professionalDaveyM692-Apr-09 6:02 
AnswerRe: CSV File Splitter Help... Pin
riced2-Apr-09 7:05
riced2-Apr-09 7:05 
GeneralRe: CSV File Splitter Help... Pin
Alistair Jarrett2-Apr-09 22:46
Alistair Jarrett2-Apr-09 22:46 
GeneralRe: CSV File Splitter Help... Pin
riced3-Apr-09 3:59
riced3-Apr-09 3:59 
QuestionAn easy one... problems converting a decimal to an integer Pin
bbranded2-Apr-09 5:31
bbranded2-Apr-09 5:31 

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.