how change row color on(in) datagirid
-
hi guys, i am using sqlserver and datagrid. i want to change to the rows color while aplication runnig and i specially want to change the color of row that in the index that i specified with writing code how can i do this thanks..
-
hi guys, i am using sqlserver and datagrid. i want to change to the rows color while aplication runnig and i specially want to change the color of row that in the index that i specified with writing code how can i do this thanks..
Ya u can change the row color by using For all rows: DataGrid1.DefaultCellStyle.BackColor = Color.DarkGray For alternating row style: DataGrid1.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige Janani
-
Ya u can change the row color by using For all rows: DataGrid1.DefaultCellStyle.BackColor = Color.DarkGray For alternating row style: DataGrid1.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige Janani
thakn you but i want to change only one row. for example DataGrid1.CurrentRowIndex = 3 i want to change this row. and there not AlternatingRowsDefaultCellStyle ana DefaultCellStyle in datagrid of peculiarity or there? if there, how can i use?
-
thakn you but i want to change only one row. for example DataGrid1.CurrentRowIndex = 3 i want to change this row. and there not AlternatingRowsDefaultCellStyle ana DefaultCellStyle in datagrid of peculiarity or there? if there, how can i use?
This is for changing the particular row color. Try it: DataGrid1.Rows(3).DefaultCellStyle.BackColor = Color.Azure For which row, u want, change the row value only.
-
This is for changing the particular row color. Try it: DataGrid1.Rows(3).DefaultCellStyle.BackColor = Color.Azure For which row, u want, change the row value only.
-
This is in VB.net only. I worked out. It was changing the particular row.
Janani