DataGrids - I give up!
Posted on 2005-05-14
Still learning, so keep that in mind.
I've been reading about DataGrids because I need one in my application. They make no sense to me. At all. None. Microsoft took something that should be very simple and made it the most incoherent, convoluted thing ever. And I thought the Swing equal to a DataGrid was bad. :)
Here's all I want to do:
A DataGrid with 3 columns, the last of those columns containing 3 controls (LinkLabels). I'm generating the DataTable programatically (not from a database, from another source) cause that's the only way this even makes a bit of sense to me. The columns are readonly, their widths are equal, and they should be sortable by clicking on the heading. That's all I want to do. Nearly the simplest thing possible. My main issue with this whole thing is the designer won't let me bing my DataTable to the DataGrid and it has to be done programatically. Isn't the point of DataGrids + the forms designer to completely avoid getting into the gory details?
Learning C# and Forms had been a pleasure up until then. Now I'm just pulling my hair out.
Thanks much for any help regarding this.