c# - User can't scroll down to all rows in datagridview -
i have simple form contain textbox, gridview , save button. user enter customer name in text box , press enter fetch data database table show them in gridview , good, problem accrued when rows count big , scroll bar of grid view appears user can scroll down add new row or browse couple last rows, surprise cant scroll down rows because scroll bar allow me scroll before last couple or tree rows, have select row , go down down arrow on keyboard , it's annoying , not professional.
information might there no spacial code use here add rows grid normal way :
joinsgridview.rows.clear(); (int = 0; < datalist.count; ++i) { registerjointformdata item = datalist[i]; joinsgridview.rows.add(); datagridviewcomboboxcell joinnamecombo = joinsgridview.rows[i].cells["joinname"] datagridviewcomboboxcell; joinnamecombo.value = datalist[i].join.jointypeid; jointypebindingsource.position = jointypebindingsource.indexof(item.join.jointype); joinsgridview.rows[i].cells["joinprice"].value = item.join.jointype.price; joinsgridview.rows[i].cells["discount"].value = item.join.discount; joinsgridview.rows[i].cells["payedmoney"].value = item.payedmoney; joinsgridview.rows[i].cells["registerdate"].value = item.join.registerdate.toshortdatestring(); joinsgridview.rows[i].cells["duration"].value = item.join.jointype.duration; joinsgridview.rows[i].cells["sessionsattened"].value = item.sessionsattend; } another info using entity framework connect database , data.
i hope described problem right , sorry bad english :)
at last found problem , it's silly expected, problem disabling grid @ form load , after user enter customer name fill grid data enable , it's fixed enabling grid first add data grid.
Comments
Post a Comment