i have datagridview textboxcolumn. if want display text contains vbtab tab removed , no tabulation displayed.
if write example "text" & vbtab & "text" programmatically datagridview's cell displayed text texttext. works fine in normal textbox tough.
can somehow corrected? thanks
you may use datagridviewcellformatting event modify appearance of text. in following code, replaced tabs vertical bar (but can change that).
private sub datagridview1_cellformatting(byval sender object, _ byval e datagridviewcellformattingeventargs) _ handles datagridview1.cellformatting if me.datagridview1.columns(e.columnindex).name = "thetextcolumnname" if e.value isnot nothing e.value = ctype(e.value, string).replace(vbtab,"|") end if end if end sub
Comments
Post a Comment