Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: regarding patch development ?? Pin
Nagy Vilmos2-Sep-09 1:40
professionalNagy Vilmos2-Sep-09 1:40 
AnswerRe: regarding patch development ?? Pin
Henry Minute2-Sep-09 2:25
Henry Minute2-Sep-09 2:25 
QuestionSplash Screen In C# ? :S Pin
Saad Shuja1-Sep-09 23:50
Saad Shuja1-Sep-09 23:50 
AnswerRe: Splash Screen In C# ? :S Pin
Programm3r2-Sep-09 0:07
Programm3r2-Sep-09 0:07 
AnswerRe: Splash Screen In C# ? :S Pin
stancrm2-Sep-09 0:33
stancrm2-Sep-09 0:33 
AnswerRe: Splash Screen In C# ? :S Pin
Swetha Srinivasan3-Sep-09 20:04
Swetha Srinivasan3-Sep-09 20:04 
GeneralRe: Splash Screen In C# ? :S Pin
Saad Shuja3-Sep-09 20:53
Saad Shuja3-Sep-09 20:53 
QuestionDataGridView: Using different fonts in single DataGridViewTextBoxCell Pin
cuker11-Sep-09 23:28
cuker11-Sep-09 23:28 
I need to "highlight" (e.g. make it bold) one word in a whole string used as a value in a cell. Is it possible?
I am using DataGridView, DataGridViewRow and DataGridViewTextBoxCell classes in my application.
Here is the snippet of the code:
DataGridViewRow aNewRow = null;
foreach (MatchData aMatchData in aSeasonData)
{
    aNewRow = new DataGridViewRow();
    DataGridViewTextBoxCell aCell = new DataGridViewTextBoxCell();
    aCell.Value = aMatchData.Date;
    aNewRow.Cells.Add(aCell);

    aNewRow = new DataGridViewRow();
    DataGridViewTextBoxCell aCell = new DataGridViewTextBoxCell();
    aCell.Value = aMatchData.WhoPlaysWho;
    aNewRow.Cells.Add(aCell);

    aCell = new DataGridViewTextBoxCell();
    aCell.Value = aMatchData.Result;
    aNewRow.Cells.Add(aCell);

    this.myListOfMatchesGridView.Rows.Add(aNewRow);
}


where myListOfMatchesGridView is of type DataGridView.
And according to the result stored in aMatchData.Result (e.g. 2:1 or 4:2) I need to make the winner team (stored in WhoPlaysWho) bold e.g. if the match was Legends vs. AllStars and the result was 3:1 for Legends the displayed output in the specific cell should be Legends vs. AllStars.

Please, give me a hint how to achieve this. From all I read about DataGrids I know how to change the font for the whole cell but so far I was not able to get an information how to change the font only for one word in a whole string (and use different font for the rest of the string) i.e. how to use two (or more) different fonts in one single cell.
AnswerRe: DataGridView: Using different fonts in single DataGridViewTextBoxCell Pin
Eddy Vluggen2-Sep-09 1:04
professionalEddy Vluggen2-Sep-09 1:04 
GeneralRe: DataGridView: Using different fonts in single DataGridViewTextBoxCell Pin
cuker16-Sep-09 20:38
cuker16-Sep-09 20:38 
GeneralRe: DataGridView: Using different fonts in single DataGridViewTextBoxCell Pin
Eddy Vluggen6-Sep-09 20:51
professionalEddy Vluggen6-Sep-09 20:51 
Questionhow to show the data in datagrid with dropdownbox Pin
Manish791-Sep-09 23:27
Manish791-Sep-09 23:27 
AnswerRe: how to show the data in datagrid with dropdownbox Pin
Jacobb Michael1-Sep-09 23:48
Jacobb Michael1-Sep-09 23:48 
GeneralRe: how to show the data in datagrid with dropdownbox Pin
Manish792-Sep-09 0:07
Manish792-Sep-09 0:07 
GeneralRe: how to show the data in datagrid with dropdownbox Pin
Jacobb Michael2-Sep-09 5:41
Jacobb Michael2-Sep-09 5:41 
QuestionPlaying for medias using AxMediaPlayer [modified] Pin
Yonathan11111-Sep-09 23:19
professionalYonathan11111-Sep-09 23:19 
AnswerRe: axmediaplayer Pin
stancrm1-Sep-09 23:36
stancrm1-Sep-09 23:36 
QuestionImage Changed in PictureBox Event Question Pin
Programm3r1-Sep-09 23:19
Programm3r1-Sep-09 23:19 
AnswerRe: Image Changed in PictureBox Event Question Pin
Programm3r1-Sep-09 23:28
Programm3r1-Sep-09 23:28 
GeneralRe: Image Changed in PictureBox Event Question Pin
rsbiz20048-Sep-09 23:19
rsbiz20048-Sep-09 23:19 
QuestionPaste Event Pin
cjb1101-Sep-09 21:48
cjb1101-Sep-09 21:48 
AnswerRe: Paste Event Pin
Hristo-Bojilov1-Sep-09 22:25
Hristo-Bojilov1-Sep-09 22:25 
GeneralRe: Paste Event Pin
cjb1102-Sep-09 6:53
cjb1102-Sep-09 6:53 
GeneralRe: Paste Event Pin
Hristo-Bojilov2-Sep-09 9:43
Hristo-Bojilov2-Sep-09 9:43 
GeneralRe: Paste Event Pin
cjb1102-Sep-09 10:40
cjb1102-Sep-09 10:40 

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.