Hii sir
i have a problem with DataGridView Cell Location. I want to get left and top of a cell in DataGridView.
i used this line of code
DataGridView1.CurrentCell.ContentBounds.Left
But i dont know why every cell return the same left value
Thanks
Thanks very much for your replay about the header text allignmen.
Logically this line
me.DataGridView1.Rows.Item(0).HeaderCell.Style.Alignment
=DataGridViewContentAlignment.MiddleCenter
must work, but i dont know why it doesn't wok.
thanks
I Use datagridview with a column its type ComboBox and when i fill a ComboBox in a row of the datagridview with items all ComboBox in the other rows of datagridview are fillesd with the same items.
I want to fill every ComboBox in every row of the datagridview seperatly,
i mean i want the items...
DataGridView
Hii UncleRonin ,
Thank u for your replay, i am really use DataGridView not datagrid but there is a problem in this solution that i cant make allignment to the text that i write on the row header
Thanks
DataGridView RowHeader
:confused: I have the same problem. I want to write text in the header of the row in datagridview. This property exists in the column header "DataGridView.Col(colIndex).cellText".
Could anyone help me,please?.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.