簡體   English   中英

如何在winforms的datagrid中的列末尾設置鏈接

[英]how to set the link at end of the columns in datagrid in winforms

目前我正在處理win表單(c#后面的代碼),我正在使用數據網格,並將鏈接保留在數據網格中。 我的問題是,當我將鏈接保留在網格中時,它將顯示在第一列,但我希望這些鏈接顯示在網格的最后一列,請任何人幫助我......如何獲得這個......

我認為你可以通過

dataGridView1.Columns["Column7"].DisplayIndex = dataGridView1.Columns.Count - 1;

這里 Column7 是您的DataGridViewLinkColumn並通過設置DisplayIndex您確定 position 現在將是最后一列。

希望這可以幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM