the app done , works, pulls info sql based off user defined filters , displays them in datagrid view. wanted before calling day this:
there column called "comments". each row's entry has comments cell. wanted make whenever clicked on row, comments of row's cell displayed in larger textbox added above datagrid.
i haven't worked datagrid's until project , after several hours of trial , error figured time ask help.
i'm not sure in situation existing code may or may not need assist provide based on request.
for winforms (wpf?) application, use rowenter event:
private void datagridview1_rowenter(object sender, datagridviewcelleventargs e) { object commentobj = (string)datagridview1.rows[e.rowindex].cells["comments"].value ; commenttextbox.text= commentobj==null ? "" : (string)commentobj ; }
Comments
Post a Comment