I am using a DataGridview while i am setting the height from the code it is not working
if (dgviewSearchResults.RowCount != 0)
{
foreach (DataGridViewRow row in dgviewSearchResults.Rows)
{
row.Height =5;
}
}
i am using the above code But it is not working for me

how to set default dataGridView row Height
TheFreeman
Sorry I could n't find any rowCreated event in Data Grid View event and i am working in c#
charles C
Try this one
chianuri
sorry the event in RowCreated in GridView
I confused it with old DataGrid control
declaratively you can use this line to set row height
<RowStyle Width="20px" />hope this helps
CaRNaGe_46038
Hi,
It can do your work:
foreach (DataGridViewRow row in DataGridView1.Rows)
{
row.Height = 5;
}
Thank you
kadabba
ItemCreated event not exists in dataGridView Events
can u please say More Descriptive.
Pradeep Gupta