Click here to Skip to main content
15,914,419 members
Home / Discussions / Database
   

Database

 
GeneralRe: Timeouts in C# Pin
Kwai Cheng Kane19-Feb-04 12:45
Kwai Cheng Kane19-Feb-04 12:45 
Questionneed sql query? Pin
murali_utr18-Feb-04 18:36
murali_utr18-Feb-04 18:36 
AnswerRe: need sql query? Pin
stefan b18-Feb-04 18:54
stefan b18-Feb-04 18:54 
GeneralRe: need sql query? Pin
murali_utr18-Feb-04 19:01
murali_utr18-Feb-04 19:01 
GeneralSimple Dataset Question... Pin
Verdant12318-Feb-04 16:45
Verdant12318-Feb-04 16:45 
GeneralRe: Simple Dataset Question... Pin
Gerald Leslie Jones19-Feb-04 18:59
Gerald Leslie Jones19-Feb-04 18:59 
GeneralRe: Simple Dataset Question... Pin
Verdant12319-Feb-04 19:06
Verdant12319-Feb-04 19:06 
GeneralRe: Simple Dataset Question... Pin
Bill Dean20-Feb-04 5:07
Bill Dean20-Feb-04 5:07 
Hi,

Sure can! Your easiest solution is probably to add a column to your DataTable and set an Expression on that column. Here's code snippet:
<code><pre>
DataColumn DC=new DataColumn("strDisplay");
DS.Tables[0].Columns.Add (DC);
DS.Tables[0].Columns["strDisplay"].Expression = "IIF(iIndex<0,'your downarrow html' + -1*iIndex,'your up arrow html'+iIndex)";
</pre></code>

Check out the VS.NET help for DataColumn.Expression

I am assuming 1) that you only have one DataTable in your DataSet 2) that the column of intergers on which you wish to operate is named "iIndex".

Then you just display the content of the new column, "strDisplay", in your DataGrid.

Hope this helps,
Bill
GeneralRe: Simple Dataset Question... Pin
Verdant12322-Feb-04 3:01
Verdant12322-Feb-04 3:01 
GeneralParameters of PutElement() Pin
girl_lash18-Feb-04 16:26
girl_lash18-Feb-04 16:26 
Generalassociating child to parent Pin
ylaine18-Feb-04 16:05
ylaine18-Feb-04 16:05 
GeneralMissing VNSAPI32.dll Pin
Bakos, Zsolt18-Feb-04 9:50
Bakos, Zsolt18-Feb-04 9:50 
GeneralRe: Missing VNSAPI32.dll Pin
Mike Dimmick19-Feb-04 6:12
Mike Dimmick19-Feb-04 6:12 
GeneralTrouble with query Pin
gamerPotatoe18-Feb-04 1:38
gamerPotatoe18-Feb-04 1:38 
GeneralRe: Trouble with query Pin
Mike Dimmick18-Feb-04 2:36
Mike Dimmick18-Feb-04 2:36 
GeneralRe: Trouble with query Pin
Edbert P19-Feb-04 13:28
Edbert P19-Feb-04 13:28 
GeneralHelp with big stored procedure Pin
Verdant12317-Feb-04 20:25
Verdant12317-Feb-04 20:25 
GeneralRe: Help with big stored procedure Pin
Not Active18-Feb-04 1:06
mentorNot Active18-Feb-04 1:06 
GeneralRe: Help with big stored procedure Pin
Verdant12318-Feb-04 1:58
Verdant12318-Feb-04 1:58 
Generalgetting columns data rowwise Pin
percyvimal17-Feb-04 16:59
percyvimal17-Feb-04 16:59 
GeneralRe: getting columns data rowwise Pin
Mazdak17-Feb-04 18:23
Mazdak17-Feb-04 18:23 
GeneralCreating SQL tables from XML schema Pin
blurp17-Feb-04 13:04
blurp17-Feb-04 13:04 
GeneralShowing Multiple tables in Datagrid Pin
Qamarwis17-Feb-04 9:56
Qamarwis17-Feb-04 9:56 
GeneralRe: uMultiple tables in Datagrid Pin
Mazdak17-Feb-04 10:01
Mazdak17-Feb-04 10:01 
QuestionWhat is ??? The Problem Pin
jinbabaj17-Feb-04 3:56
jinbabaj17-Feb-04 3:56 

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.