Click here to Skip to main content
16,005,178 members
Home / Discussions / C#
   

C#

 
GeneralRe: Throw Exception - how expensive is it really? Pin
Christian Graus17-Oct-04 9:51
protectorChristian Graus17-Oct-04 9:51 
GeneralRe: Throw Exception - how expensive is it really? Pin
elguaro17-Oct-04 14:00
elguaro17-Oct-04 14:00 
GeneralRe: Throw Exception - how expensive is it really? Pin
Nemanja Trifunovic17-Oct-04 14:54
Nemanja Trifunovic17-Oct-04 14:54 
GeneralMedia Player SDK Pin
Christian Graus12-Oct-04 14:47
protectorChristian Graus12-Oct-04 14:47 
GeneralNot an answer, but an alternative. Pin
Matt Philmon12-Oct-04 18:02
Matt Philmon12-Oct-04 18:02 
GeneralRe: Media Player SDK Pin
Dave Kreskowiak12-Oct-04 18:11
mveDave Kreskowiak12-Oct-04 18:11 
GeneralRe: Media Player SDK Pin
Christian Graus13-Oct-04 9:05
protectorChristian Graus13-Oct-04 9:05 
GeneralDatagrid and Datatable and sorting, Winform Pin
Matt Philmon12-Oct-04 11:53
Matt Philmon12-Oct-04 11:53 
I'm taking over an application from a developer that just left the company. The application is mostly "completed" with just a few bugs and a couple pieces of functionality I'll have to add (no big deal). It's really just a datagrid tied to a sequel server through a proper dataset. The user has several types of searches possible and for each one there is a different TableStyle used in the DataGrid but in any case the same dataset is used.

My problem is that they want to sort by clicking on the column headers. I know I can turn that on easy enough (and I have). However, it doesn't "appear" that the DataTable being bound to the dataset of the datagrid is being reordered with the dataview of the datagrid (too many freagin data's). Anyway, I know I could do a Select() against the DataSet() using the "MappingName" of the Column Header. This SHOULD give me the same ordering that the grid control is giving me, right?

Is there a way to automate this? The reason I need the grid's "view" and the datatable to stay in Sync (order wise) is if a user-double clicks a row it opens an editor dialog with alot of custom options that wouldn't really work by in-line editing. Also, if the user sorts by the column header I want to be able to retain the proper selected record (if one was selected) once the list is redrawn.

Any help? I can probably hack something but I'd really like to do it properly. I'm a bit new to using this control and, in fact, Datasets, etc.
QuestionHow to specify HOSTNAME in sql connection string Pin
Darryl Borden12-Oct-04 10:11
Darryl Borden12-Oct-04 10:11 
GeneralRe: How to specify HOSTNAME in sql connection string Pin
Heath Stewart12-Oct-04 10:59
protectorHeath Stewart12-Oct-04 10:59 
QuestionCan anyone tell me whether this is right or wrong..? Pin
Kiran Satish12-Oct-04 10:04
Kiran Satish12-Oct-04 10:04 
AnswerRe: Can anyone tell me whether this is right or wrong..? Pin
Christian Graus12-Oct-04 10:46
protectorChristian Graus12-Oct-04 10:46 
GeneralRe: Can anyone tell me whether this is right or wrong..? Pin
Kiran Satish12-Oct-04 13:34
Kiran Satish12-Oct-04 13:34 
GeneralRe: Can anyone tell me whether this is right or wrong..? Pin
Kiran Satish13-Oct-04 19:33
Kiran Satish13-Oct-04 19:33 
GeneralWord documents to PDF in C## Pin
house12-Oct-04 9:53
house12-Oct-04 9:53 
GeneralRe: Word documents to PDF in C## Pin
Christian Graus12-Oct-04 10:47
protectorChristian Graus12-Oct-04 10:47 
GeneralImage Rotation Pin
ahmadzafar12-Oct-04 9:52
ahmadzafar12-Oct-04 9:52 
GeneralRe: Image Rotation Pin
Christian Graus12-Oct-04 10:50
protectorChristian Graus12-Oct-04 10:50 
GeneralRe: Image Rotation Pin
yoaz13-Oct-04 6:57
yoaz13-Oct-04 6:57 
GeneralRe: Image Rotation Pin
ahmadzafar15-Oct-04 6:37
ahmadzafar15-Oct-04 6:37 
GeneralRe: Image Rotation Pin
yoaz17-Oct-04 6:42
yoaz17-Oct-04 6:42 
GeneralRe: Image Rotation Pin
ahmadzafar10-Dec-04 16:44
ahmadzafar10-Dec-04 16:44 
GeneralConverting from a short file name to a long one in C# Pin
dabs12-Oct-04 8:29
dabs12-Oct-04 8:29 
GeneralRe: Converting from a short file name to a long one in C# Pin
mav.northwind13-Oct-04 4:43
mav.northwind13-Oct-04 4:43 
GeneralQuick question about threads Pin
Bryant Stirling12-Oct-04 7:33
Bryant Stirling12-Oct-04 7:33 

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.