vs 2013 datagrid customization
hi, I'm using vs 2013 rite now im doing a project in winforms in that i want to create a dropdownlist box in my datagrid while im adding a new row dynamically and i have already bind the datagrid to a data source.. so pls help me with the code.. Thank u!!
Joginder BangerPosted Oct 15, 2014, 10:56 PM
void CustomersGridView_RowDataBound(Object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{ // Display the company name in italics.
e.Row.Cells[1].Text = "" + e.Row.Cells[1].Text + "";
}
}
i hope your problem had been solved.