Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sorting datagrid with empty rows

Status
Not open for further replies.

mrVice

Programmer
Jan 23, 2005
2
SE
I have datagrid that I'm filling with rows, if the rows don't fill up the size of the grid, then I'm adding new empty rows from my dataview in my derived datagrid. The problems that comes up is that when im sorting the columns the empty rows are also sorted (not the last one, and i don't know why the last one is not sorted). Qestion: can i somehow sort the filled rows and just letting the empty (DBNULL) just be in the bottom of my grid?
 
You can try using a Unicode zero-width non-breaking space. It shouldn't print anything, and will sort above (most) text.

U+FEFF

Note that your font may replace it with a small rectangle if it doesn't have that glyph in it. You can then switch to a Unicode-aware font (MS-Arial Unicode, for example), Or use the CharacterMap utility to find an acceptable hi-bit character.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Sorry but im not following you, can you please explain a litle bit deeper. Regards!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top