Click here to Skip to main content
14,740,188 members
Home » Discussions » C#
   

C#

 
GeneralRe: How to extract part of HTML source? Pin
Member 5697394-Nov-20 10:12
MemberMember 5697394-Nov-20 10:12 
AnswerRe: How to extract part of HTML source? Pin
Richard Andrew x644-Nov-20 15:11
professionalRichard Andrew x644-Nov-20 15:11 
AnswerRe: How to extract part of HTML source? Pin
DerekT-P5-Nov-20 0:29
professionalDerekT-P5-Nov-20 0:29 
GeneralRe: How to extract part of HTML source? Pin
Richard Deeming5-Nov-20 0:36
mveRichard Deeming5-Nov-20 0:36 
GeneralRe: How to extract part of HTML source? Pin
DerekT-P5-Nov-20 1:26
professionalDerekT-P5-Nov-20 1:26 
GeneralRe: How to extract part of HTML source? Pin
Member 5697395-Nov-20 4:56
MemberMember 5697395-Nov-20 4:56 
QuestionHow to switch the whole DataGridView Left-To-right? Pin
Alex Dunlop4-Nov-20 8:46
MemberAlex Dunlop4-Nov-20 8:46 
AnswerRe: How to switch the whole DataGridView Left-To-right? Pin
BillWoodruff4-Nov-20 15:21
mveBillWoodruff4-Nov-20 15:21 
Alex Dunlop wrote:
first column is in the right side, like what you see in Excel.
I assume you are dealing with binding a DataSet to a DataGridView where you have no control over the Column order.

0) if you set the RightToLeft property of the Form, the DataGridView will show reverse column order.

1) if you set the RightToLeft property of the DataGridView, you reverse the column order.

2) if you have set the AllowUserToOrderColumns to true, the run time user can reorder columns by dragging.

3) you can change column order in code using the DisplayIndex property of the column [^].

Code like this will work, but, you must execute it either after the form calls InitializeComponent(); ... or, in the Shown event of the form:
DataGridViewColumnCollection columns = dataGridView1.Columns;

int nColumns = columns.Count - 1;

for (int i = 0; i <= nColumns; i++)
{
    columns[i].DisplayIndex = nColumns - i;
}

«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

AnswerRe: How to switch the whole DataGridView Left-To-right? Pin
Mycroft Holmes5-Nov-20 11:50
professionalMycroft Holmes5-Nov-20 11:50 
QuestionMoving VS 2019 solution from on-premise to cloud Pin
Member 144746074-Nov-20 8:27
MemberMember 144746074-Nov-20 8:27 
AnswerRe: Moving VS 2019 solution from on-premise to cloud Pin
Richard Andrew x644-Nov-20 15:05
professionalRichard Andrew x644-Nov-20 15:05 
QuestionWinForm - Localize DataGridView with automatical generated columns Pin
Mc_Topaz4-Nov-20 0:08
MemberMc_Topaz4-Nov-20 0:08 
AnswerRe: WinForm - Localize DataGridView with automatical generated columns Pin
BillWoodruff4-Nov-20 3:35
mveBillWoodruff4-Nov-20 3:35 
QuestionCsharp InTheHand.Net read bluetooth data on received event Pin
nowis773-Nov-20 9:07
Membernowis773-Nov-20 9:07 
AnswerRe: Csharp InTheHand.Net read bluetooth data on received event Pin
jsc423-Nov-20 11:33
professionaljsc423-Nov-20 11:33 
GeneralRe: Csharp InTheHand.Net read bluetooth data on received event Pin
nowis7710-Nov-20 22:01
Membernowis7710-Nov-20 22:01 
QuestionBusiness Layer Question Pin
Kevin Marois2-Nov-20 7:31
professionalKevin Marois2-Nov-20 7:31 
AnswerRe: Business Layer Question Pin
Richard Deeming2-Nov-20 7:45
mveRichard Deeming2-Nov-20 7:45 
GeneralRe: Business Layer Question Pin
Kevin Marois2-Nov-20 8:27
professionalKevin Marois2-Nov-20 8:27 
Questionuse connection from login form in other forms Pin
Newkid on the block31-Oct-20 6:43
MemberNewkid on the block31-Oct-20 6:43 
AnswerRe: use connection from login form in other forms Pin
OriginalGriff31-Oct-20 6:57
mveOriginalGriff31-Oct-20 6:57 
GeneralRe: use connection from login form in other forms Pin
Newkid on the block31-Oct-20 11:21
MemberNewkid on the block31-Oct-20 11:21 
GeneralRe: use connection from login form in other forms Pin
Dave Kreskowiak31-Oct-20 12:26
mveDave Kreskowiak31-Oct-20 12:26 
AnswerRe: use connection from login form in other forms Pin
Dave Kreskowiak31-Oct-20 7:30
mveDave Kreskowiak31-Oct-20 7:30 
AnswerRe: use connection from login form in other forms Pin
BillWoodruff1-Nov-20 16:12
mveBillWoodruff1-Nov-20 16:12 

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.