SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

WinForms Designer: naming conventions using several DataGridView's

Last post 02-23-2016 4:54 PM by Juergen Thomas. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 02-23-2016 4:54 PM

    WinForms Designer: naming conventions using several DataGridView's

    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

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.