Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralIPAddress(byte[]) fails - need help Pin
Sebastian Schneider28-Feb-05 1:36
Sebastian Schneider28-Feb-05 1:36 
GeneralRe: IPAddress(byte[]) fails - need help Pin
leppie28-Feb-05 6:18
leppie28-Feb-05 6:18 
GeneralRe: IPAddress(byte[]) fails - need help Pin
Sebastian Schneider1-Mar-05 20:39
Sebastian Schneider1-Mar-05 20:39 
GeneralRe: IPAddress(byte[]) fails - need help Pin
lushgrass21-Jul-05 14:36
lushgrass21-Jul-05 14:36 
Generalsocket connection in Windows XP Pin
Begoña28-Feb-05 1:32
Begoña28-Feb-05 1:32 
GeneralRe: socket connection in Windows XP Pin
leppie28-Feb-05 6:21
leppie28-Feb-05 6:21 
GeneralRe: socket connection in Windows XP Pin
Dave Kreskowiak28-Feb-05 7:15
mveDave Kreskowiak28-Feb-05 7:15 
Generaldatagrid sorting hassles Pin
steven shingler28-Feb-05 0:27
steven shingler28-Feb-05 0:27 
Hi all,
I've got a datagrid.
I have a function which selects certain rows in a datagrid thus:

public void selectRows(string key, string columnName)
{
int count = 0;
foreach(DataRow dr in ((DataView)dg_aspects.DataSource).Table.Rows)
{
if(dr[columnName].ToString()==key)
dg_aspects.Select(count);
else
dg_aspects.UnSelect(count);
count++;
}
}

This works, but when the user clicks a column header to sort the datagrid, the selected columns remain at the same index.

For example - if the top two rows are selected initially.
After sort - the top two rows are still selected, but the datagrid is showing different results in those rows.

It appears that the DataTable the DataGrid is showing, and the DataDource we work with aren't the same where sorting is concerned.

Does anyone know how to get a handle on the sorted DataTable?

I hope that's clear - thanks for taking a look
Steven
GeneralRe: datagrid sorting hassles Pin
leppie28-Feb-05 6:22
leppie28-Feb-05 6:22 
GeneralToolbar Pin
subPose27-Feb-05 23:51
subPose27-Feb-05 23:51 
GeneralRe: Toolbar Pin
subPose1-Mar-05 1:03
subPose1-Mar-05 1:03 
GeneralWildcard Conversion to Regular Expressions Pin
Aisha Ikram27-Feb-05 23:38
Aisha Ikram27-Feb-05 23:38 
GeneralCustom Printdialog - Printer Properties Pin
pahlsson27-Feb-05 23:27
pahlsson27-Feb-05 23:27 
GeneralCustom DataType Pin
Maqsood Ahmed27-Feb-05 20:16
Maqsood Ahmed27-Feb-05 20:16 
GeneralRe: Custom DataType Pin
spif200127-Feb-05 22:04
spif200127-Feb-05 22:04 
QuestionHow to add Windows Form to Tab Control page using C#? Pin
pubududilena27-Feb-05 17:06
pubududilena27-Feb-05 17:06 
AnswerRe: How to add Windows Form to Tab Control page using C#? Pin
leppie27-Feb-05 19:22
leppie27-Feb-05 19:22 
GeneralRe: How to add Windows Form to Tab Control page using C#? Pin
Dave Kreskowiak28-Feb-05 1:10
mveDave Kreskowiak28-Feb-05 1:10 
GeneralRe: How to add Windows Form to Tab Control page using C#? Pin
leppie28-Feb-05 6:23
leppie28-Feb-05 6:23 
AnswerRe: How to add Windows Form to Tab Control page using C#? Pin
Heath Stewart27-Feb-05 19:22
protectorHeath Stewart27-Feb-05 19:22 
GeneralRe: How to add Windows Form to Tab Control page using C#? Pin
leppie27-Feb-05 19:55
leppie27-Feb-05 19:55 
GeneralRe: How to add Windows Form to Tab Control page using C#? Pin
pubududilena28-Feb-05 0:36
pubududilena28-Feb-05 0:36 
Generalc# remoting on windows xp pro is much slower compared to windows 2k pro Pin
Member 154579527-Feb-05 15:12
Member 154579527-Feb-05 15:12 
GeneralRe: c# remoting on windows xp pro is much slower compared to windows 2k pro Pin
leppie27-Feb-05 18:23
leppie27-Feb-05 18:23 
GeneralRe: c# remoting on windows xp pro is much slower compared to windows 2k pro Pin
Member 154579527-Feb-05 22:59
Member 154579527-Feb-05 22:59 

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.