Click here to Skip to main content
14,665,555 members
Home » Discussions » C#
   

C#

 
AnswerRe: Problem showing a symbol from a custom font Pin
Mc_Topaz7-Sep-20 23:52
MemberMc_Topaz7-Sep-20 23:52 
QuestionDebug does not stop on errors. Pin
MAW306-Sep-20 15:27
MemberMAW306-Sep-20 15:27 
AnswerRe: Debug does not stop on errors. Pin
Sandeep Mewara6-Sep-20 19:09
mentorSandeep Mewara6-Sep-20 19:09 
AnswerRe: Debug does not stop on errors. Pin
OriginalGriff6-Sep-20 20:32
mveOriginalGriff6-Sep-20 20:32 
SuggestionRe: Debug does not stop on errors. Pin
Richard Deeming6-Sep-20 22:38
mveRichard Deeming6-Sep-20 22:38 
GeneralRe: Debug does not stop on errors. Pin
OriginalGriff6-Sep-20 22:51
mveOriginalGriff6-Sep-20 22:51 
QuestionChanging Caption in dt Pin
MAW306-Sep-20 15:22
MemberMAW306-Sep-20 15:22 
AnswerRe: Changing Caption in dt Pin
OriginalGriff6-Sep-20 20:45
mveOriginalGriff6-Sep-20 20:45 
The Caption property isn't used to set the headers of a DataGridView (for example) when you use it as a DataSource - it probably should have been, but it definitely wasn't!

If you want a "friendly name" for your displayed columns, you need to manually set them on the display control via the "HeaderText" property:
myDataTable = new DataTable();
myDataTable.Columns.Add("C1");
myDataTable.Columns.Add("C2");
myDataTable.Columns[0].Caption = "A new caption";
myDataGridView.Columns.Clear();
myDataGridView.DataSource = myDataTable;
for (int i = 0; i < myDataTable.Columns.Count; i++)
    {
    myDataGridView.Columns[i].HeaderText = myDataTable.Columns[i].Caption;
    }

"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

QuestionCan a button in a simple html-document somehow call a (clientside) C# method? Pin
arnold_w5-Sep-20 0:12
Memberarnold_w5-Sep-20 0:12 
AnswerRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
OriginalGriff5-Sep-20 0:30
mveOriginalGriff5-Sep-20 0:30 
GeneralRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
arnold_w5-Sep-20 0:36
Memberarnold_w5-Sep-20 0:36 
GeneralRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
OriginalGriff5-Sep-20 0:54
mveOriginalGriff5-Sep-20 0:54 
AnswerRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
Gerry Schmitz5-Sep-20 3:50
mveGerry Schmitz5-Sep-20 3:50 
GeneralRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
arnold_w5-Sep-20 4:33
Memberarnold_w5-Sep-20 4:33 
GeneralRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
Gerry Schmitz5-Sep-20 4:58
mveGerry Schmitz5-Sep-20 4:58 
AnswerRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
Dave Kreskowiak5-Sep-20 5:39
mveDave Kreskowiak5-Sep-20 5:39 
GeneralRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
arnold_w5-Sep-20 8:30
Memberarnold_w5-Sep-20 8:30 
GeneralRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
Dave Kreskowiak5-Sep-20 9:04
mveDave Kreskowiak5-Sep-20 9:04 
GeneralRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
jsc426-Sep-20 11:31
professionaljsc426-Sep-20 11:31 
AnswerRe: Can a button in a simple html-document somehow call a (clientside) C# method? Pin
Luc Pattyn5-Sep-20 9:29
sitebuilderLuc Pattyn5-Sep-20 9:29 
QuestionSimple C# question - Begginer's lesson, please aid. Pin
Member 149309634-Sep-20 13:32
MemberMember 149309634-Sep-20 13:32 
AnswerRe: Simple C# question - Begginer's lesson, please aid. Pin
Mycroft Holmes4-Sep-20 15:19
professionalMycroft Holmes4-Sep-20 15:19 
GeneralRe: Simple C# question - Begginer's lesson, please aid. Pin
Member 149309634-Sep-20 15:21
MemberMember 149309634-Sep-20 15:21 
GeneralRe: Simple C# question - Begginer's lesson, please aid. Pin
Mycroft Holmes4-Sep-20 15:57
professionalMycroft Holmes4-Sep-20 15:57 
GeneralRe: Simple C# question - Begginer's lesson, please aid. Pin
Member 149309634-Sep-20 16:56
MemberMember 149309634-Sep-20 16: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.