Divide width of row datagrid in C# with screen specification ????
-
hi all. I divide width of row datagridview in c# . when i set columnHeaderVisible = true: OK but i set columnHeaderVisible = false: it have been wrong 1 desert = width of row header. question : when set columnHeaderVisible = false. how i do to width of rows in datagrid not wrong ??? please help me. code dataGridView.Height = h*12; dataGridView.RowTemplate.Height = h; if dataGridView.columnHeaderVisible = true ==> ok but : dataGridView.columnHeaderVisible = false ==> not ok nothing
-
hi all. I divide width of row datagridview in c# . when i set columnHeaderVisible = true: OK but i set columnHeaderVisible = false: it have been wrong 1 desert = width of row header. question : when set columnHeaderVisible = false. how i do to width of rows in datagrid not wrong ??? please help me. code dataGridView.Height = h*12; dataGridView.RowTemplate.Height = h; if dataGridView.columnHeaderVisible = true ==> ok but : dataGridView.columnHeaderVisible = false ==> not ok nothing
Hi, Okay, I read your question a couple of times, and I have no idea what you just said / asked? :confused::confused: Could you please try and be more specific about the problem? Kind regards,
-
hi all. I divide width of row datagridview in c# . when i set columnHeaderVisible = true: OK but i set columnHeaderVisible = false: it have been wrong 1 desert = width of row header. question : when set columnHeaderVisible = false. how i do to width of rows in datagrid not wrong ??? please help me. code dataGridView.Height = h*12; dataGridView.RowTemplate.Height = h; if dataGridView.columnHeaderVisible = true ==> ok but : dataGridView.columnHeaderVisible = false ==> not ok nothing
You're going to have to define what a correct column width should be for anyone to answer this. What do you mean by "not wrong"??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak