Hai i need to Number each rows IN "Row Header" of that row.
First of all, i don't even know how to Get/Set Row Header?
PLease Help me ..
With Regards,
Janani.S
Sorry, ignore my request please, I found my way through IDataErrorInfo
http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/html/WinGrid_Display_Row_Cell_Errors_Using_IDataErrorInfo.html
RowHeader.Text in datagrid is rather helpful when I want to highlight validation error messages in data entry like missing fields etc..
Rather than using the RowHeader for this purpose in Infragistics wingrid, do you suggest any other way to serve my purpose?
Thanks!
Hi,
What kind of text do you want to show?
There's no property for this - other than the row numbers. But there are a couple of ways you could acheive this.
One would be to use a CreationFilter to change the text on the UIElement inside the RowSelectorUIElement.
Another would be to simply add an unbound column and use that to display the text you want and then disable editing and handle the click on the column so that it selects a row.
Which approach you take depends on what kind of text you want to display and what behavior you need.
How can I customize the text that needs to be shown on a row header?
Is it possible with v12.1 libs?
Thanks! Appreciate the help
These are call RowSelectors. They have numbering capability built-in.
So all you have to do is something like this:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.RowSelectorNumberStyle = RowSelectorNumberStyle.RowIndex; }