Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

WinForms Designer: naming conventions using several DataGridView's

$
0
0

Hi, I create a MainForm with several DataGridView objects. Each table has a field id. The related columns in the DGV are named as idDataGridViewTextBoxColumn, idDataGridViewTextBoxColumn1, idDataGridViewTextBoxColumn2, and so on. The same problem occurs with other kinds of DGV-columns.

If I want to change some properties by code to effect at runtime, I cannot see to which table a specific id resp. TextBoxColumn belongs to. The problem increases if I want to use some ComboBoxColumns relating computed columns with similar names in different tables.

I suggest to name the DGV columns by (TableName)(FieldName)DataGridViewTextBoxColumn oder (DataGridView.name)(FieldName)TextBoxColumn.

Thanks in advance, Juergen


Viewing all articles
Browse latest Browse all 1764

Trending Articles