Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
GeneralRe: How Do I Define String Length? Pin
JamesBarnes30-Jul-07 7:18
JamesBarnes30-Jul-07 7:18 
GeneralRe: How Do I Define String Length? Pin
PIEBALDconsult30-Jul-07 10:49
mvePIEBALDconsult30-Jul-07 10:49 
Questionlayouting a hidden control Pin
burn_hh30-Jul-07 6:49
burn_hh30-Jul-07 6:49 
QuestionSQL Database Pin
ankit_mait30-Jul-07 6:40
ankit_mait30-Jul-07 6:40 
AnswerRe: SQL Database Pin
Paul Conrad30-Jul-07 6:43
professionalPaul Conrad30-Jul-07 6:43 
AnswerRe: SQL Database Pin
Cfer8330-Jul-07 9:44
Cfer8330-Jul-07 9:44 
GeneralRe: SQL Database Pin
ankit_mait30-Jul-07 20:07
ankit_mait30-Jul-07 20:07 
QuestionData-bound DataGrid: Custom sorting? Pin
Stanimir_Stoyanov30-Jul-07 6:33
Stanimir_Stoyanov30-Jul-07 6:33 
Hello,

I have a DataGrid (not DataGridView) control .NET 2.0 bound to a given DataTable. One of the columns contains alphanumeric values which do not get sorted well: e.g. take the IDs A-12, A-103, B-3, ... Z-0. The default sorter of the DataGrid sorts the first two items incorrectly (A-103, A-12).

If I used a custom IComparer implementation I would call string.CompareOrdinal in order to obtain the actual compare result but apparently data-bound grids cannot be sorted that way.

I would definitely appreciate any suggestions to resolve this issue. I think this can be achived by creating a derived Control or by handling the SortCompare event of the DataGridView control.

Thanks,
Stanimir
QuestionMy variables content appear in hexadecimal Pin
gapfulgence30-Jul-07 5:47
gapfulgence30-Jul-07 5:47 
AnswerRe: My variables content appear in hexadecimal Pin
Bert delaVega30-Jul-07 5:54
Bert delaVega30-Jul-07 5:54 
QuestionRe: My variables content appear in hexadecimal Pin
gapfulgence30-Jul-07 6:02
gapfulgence30-Jul-07 6:02 
AnswerRe: My variables content appear in hexadecimal Pin
PhilDanger30-Jul-07 6:08
PhilDanger30-Jul-07 6:08 
GeneralRe: My variables content appear in hexadecimal Pin
gapfulgence30-Jul-07 6:09
gapfulgence30-Jul-07 6:09 
AnswerRe: My variables content appear in hexadecimal Pin
Bert delaVega30-Jul-07 6:12
Bert delaVega30-Jul-07 6:12 
GeneralRe: My variables content appear in hexadecimal Pin
gapfulgence30-Jul-07 6:52
gapfulgence30-Jul-07 6:52 
QuestionSharp Develop Regular Expression Pin
xawsccs30-Jul-07 5:38
xawsccs30-Jul-07 5:38 
AnswerRe: Sharp Develop Regular Expression Pin
led mike30-Jul-07 5:49
led mike30-Jul-07 5:49 
AnswerRe: Sharp Develop Regular Expression Pin
Martin#30-Jul-07 6:00
Martin#30-Jul-07 6:00 
GeneralRe: Sharp Develop Regular Expression Pin
xawsccs31-Jul-07 6:25
xawsccs31-Jul-07 6:25 
AnswerRe: Sharp Develop Regular Expression Pin
Paul Conrad30-Jul-07 6:22
professionalPaul Conrad30-Jul-07 6:22 
QuestionAccess to the class variable in the Program.cs Pin
UweOeder30-Jul-07 5:31
professionalUweOeder30-Jul-07 5:31 
AnswerRe: Access to the class variable in the Program.cs Pin
led mike30-Jul-07 5:47
led mike30-Jul-07 5:47 
AnswerRe: Access to the class variable in the Program.cs Pin
PhilDanger30-Jul-07 6:05
PhilDanger30-Jul-07 6:05 
GeneralRe: Access to the class variable in the Program.cs Pin
UweOeder30-Jul-07 21:00
professionalUweOeder30-Jul-07 21:00 
QuestionDataGridView Max Rows Pin
jasper01830-Jul-07 5:22
jasper01830-Jul-07 5:22 

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.