Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to convert bmp image to hexa conversion ??? Pin
0x3c030-Sep-09 5:26
0x3c030-Sep-09 5:26 
QuestionAlter A query In Access using c# Pin
Abdul Rahman Hamidy29-Sep-09 20:43
Abdul Rahman Hamidy29-Sep-09 20:43 
AnswerRe: Alter A query In Access using c# Pin
Abdul Rahman Hamidy30-Sep-09 3:06
Abdul Rahman Hamidy30-Sep-09 3:06 
Questionchange property return type dynamically Pin
$unil Dhiman29-Sep-09 20:12
$unil Dhiman29-Sep-09 20:12 
AnswerRe: change property return type dynamically Pin
Christian Graus29-Sep-09 20:20
protectorChristian Graus29-Sep-09 20:20 
GeneralRe: change property return type dynamically Pin
$unil Dhiman29-Sep-09 20:33
$unil Dhiman29-Sep-09 20:33 
GeneralRe: change property return type dynamically Pin
Christian Graus29-Sep-09 22:12
protectorChristian Graus29-Sep-09 22:12 
Questiondatagrid combobox column Pin
Member 59031029-Sep-09 19:47
Member 59031029-Sep-09 19:47 
AnswerRe: datagrid combobox column Pin
Greg Chelstowski29-Sep-09 21:28
Greg Chelstowski29-Sep-09 21:28 
Questiondatetime picker in datagridview c# 2008 Pin
abcurl29-Sep-09 18:04
abcurl29-Sep-09 18:04 
AnswerRe: datetime picker in datagridview c# 2008 Pin
Not Active29-Sep-09 18:27
mentorNot Active29-Sep-09 18:27 
GeneralRe: datetime picker in datagridview c# 2008 Pin
abcurl29-Sep-09 18:30
abcurl29-Sep-09 18:30 
GeneralRe: datetime picker in datagridview c# 2008 Pin
Not Active29-Sep-09 18:37
mentorNot Active29-Sep-09 18:37 
QuestionRe: datetime picker in datagridview c# 2008 Pin
abcurl29-Sep-09 18:40
abcurl29-Sep-09 18:40 
AnswerRe: datetime picker in datagridview c# 2008 Pin
Not Active29-Sep-09 18:46
mentorNot Active29-Sep-09 18:46 
QuestionWCF,3Tier Pin
Member 232129329-Sep-09 17:47
Member 232129329-Sep-09 17:47 
QuestionModify a Dataset then apply dataset to sql server... What am I doing wrong Please? Pin
JollyMansArt29-Sep-09 12:25
JollyMansArt29-Sep-09 12:25 
AnswerRe: Modify a Dataset then apply dataset to sql server... What am I doing wrong Please? Pin
JollyMansArt29-Sep-09 12:35
JollyMansArt29-Sep-09 12:35 
QuestionHow to run a wcf service in System Context? Pin
AndyASPVB29-Sep-09 11:44
AndyASPVB29-Sep-09 11:44 
AnswerRe: How to run a wcf service in System Context? Pin
Calla29-Sep-09 19:35
Calla29-Sep-09 19:35 
GeneralRe: How to run a wcf service in System Context? Pin
AndyASPVB30-Sep-09 8:43
AndyASPVB30-Sep-09 8:43 
QuestionFind First Row using WildCard and nonPrimary Column Pin
KCI-VA29-Sep-09 10:36
KCI-VA29-Sep-09 10:36 
AnswerRe: Find First Row using WildCard and nonPrimary Column [modified] Pin
Eddy Vluggen29-Sep-09 10:53
professionalEddy Vluggen29-Sep-09 10:53 
AnswerRe: Find First Row using WildCard and nonPrimary Column Pin
Henry Minute29-Sep-09 11:06
Henry Minute29-Sep-09 11:06 
QuestionRe: Find First Row using WildCard and nonPrimary Column [modified] Pin
KCI-VA30-Sep-09 2:18
KCI-VA30-Sep-09 2:18 
Thanks for the advice, but I have tried these. Let me be a little more specific.

So far, I gather using dt.DefaultView may be the way to go since it does not require a PrimaryKey. And to note I am not using a bindingsource. My goal is to search the existing in memory rowset and not require another trip back and forth to the SQL server.

Here is a code snippet I tried, but it returns -1:
ds.Tables["Students"].DefaultView.Sort = "LastName";
int intRow = ds.Tables["Students"].DefaultView.Find("S%");

I have also tried this, but it returns zero rows:
ds.Tables["Students"].DefaultView.Sort = "LastName";
DataRowView[] drv = ds.Tables["Students"].DefaultView.FindRows("[LastName] LIKE 'S'");

Thanks,
KCI

Get to work!

modified on Wednesday, September 30, 2009 8:42 AM

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.