Click here to Skip to main content
15,906,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# RSACryptoServiceProvider encryption - stored passwords Pin
judyvjudy21-Apr-04 11:56
judyvjudy21-Apr-04 11:56 
GeneralRe: c# RSACryptoServiceProvider encryption - stored passwords Pin
Heath Stewart21-Apr-04 12:22
protectorHeath Stewart21-Apr-04 12:22 
QuestionHow to access the Inner class in C#? Pin
Anonymous21-Apr-04 9:54
Anonymous21-Apr-04 9:54 
AnswerRe: How to access the Inner class in C#? Pin
Heath Stewart21-Apr-04 10:08
protectorHeath Stewart21-Apr-04 10:08 
AnswerRe: How to access the Inner class in C#? Pin
scadaguy21-Apr-04 10:11
scadaguy21-Apr-04 10:11 
AnswerRe: How to access the Inner class in C#? Pin
Stefan Troschuetz21-Apr-04 20:43
Stefan Troschuetz21-Apr-04 20:43 
GeneralUrgent.. need a sw that cuts video into images and compatible with .NET Pin
MDM_RVS21-Apr-04 9:26
MDM_RVS21-Apr-04 9:26 
GeneralPivotTable and DataSet Pin
hxxbin21-Apr-04 8:16
hxxbin21-Apr-04 8:16 
GeneralRe: PivotTable and DataSet Pin
Heath Stewart21-Apr-04 8:53
protectorHeath Stewart21-Apr-04 8:53 
GeneralRe: PivotTable and DataSet Pin
hxxbin22-Apr-04 4:47
hxxbin22-Apr-04 4:47 
GeneralRe: PivotTable and DataSet Pin
Heath Stewart22-Apr-04 4:56
protectorHeath Stewart22-Apr-04 4:56 
GeneralI need an example of application.. Pin
benqazou21-Apr-04 8:12
benqazou21-Apr-04 8:12 
GeneralRe: I need an example of application.. Pin
Heath Stewart21-Apr-04 8:42
protectorHeath Stewart21-Apr-04 8:42 
GeneralRe: I need an example of application.. Pin
Andrew McCarter21-Apr-04 8:50
Andrew McCarter21-Apr-04 8:50 
Questionhow do i change the papersize to legal Pin
cmarmr21-Apr-04 8:07
cmarmr21-Apr-04 8:07 
AnswerRe: how do i change the papersize to legal Pin
Heath Stewart21-Apr-04 8:41
protectorHeath Stewart21-Apr-04 8:41 
GeneralRe: how do i change the papersize to legal Pin
cmarmr21-Apr-04 9:49
cmarmr21-Apr-04 9:49 
GeneralRe: how do i change the papersize to legal Pin
Heath Stewart21-Apr-04 10:06
protectorHeath Stewart21-Apr-04 10:06 
GeneralData Display question. Pin
Michael P Butler21-Apr-04 7:30
Michael P Butler21-Apr-04 7:30 
GeneralRe: Data Display question. Pin
Heath Stewart21-Apr-04 8:37
protectorHeath Stewart21-Apr-04 8:37 
GeneralRe: Data Display question. Pin
Michael P Butler21-Apr-04 9:55
Michael P Butler21-Apr-04 9:55 
GeneralRe: Data Display question. Pin
Heath Stewart21-Apr-04 10:04
protectorHeath Stewart21-Apr-04 10:04 
Microsoft is doing it for .NET 2.0. They're adding data-binding to the ListView (among other things, like virtual lists and grouping) and introducing an all-new control called the DataView, which is much more powerful and flexible than the DataGrid. In fact, IIRC, the DataGrid isn't even added to VS.NET 2005's toolbox by default.

There's no easy way to bind the ListView, but you can use the same tactics as the DataGrid. If the DataSource property you'd add to your own ListView derivative implements IListSource, you get the IList. If it implements IList, you simply use that. Then just enumerate that and do a little checking to see if you're enumerating simple objects or DataRows. You can use that to bind columns.

You could go a step further (albeit a pretty big step) and create your own column handlers that allow you to specify mapping names. The best way to see how this works is to use ildasm.exe from the .NET Framework SDK to see how the DataGrid works.

Consider this, though: after you've finished you're essentially created a DataGrid. You may as well use that until you can upgrade your codebase to .NET 2.0 which should go beta later this summer presumably since it's slated to be released in Q1 or Q2 of 2005.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Data Display question. Pin
Michael P Butler21-Apr-04 10:21
Michael P Butler21-Apr-04 10:21 
Questionany ideas on this security problem?? Pin
LongRange.Shooter21-Apr-04 7:29
LongRange.Shooter21-Apr-04 7:29 
GeneralSimulation of VB6 Style Default properties Pin
Fakher Halim21-Apr-04 6:25
Fakher Halim21-Apr-04 6:25 

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.