System.Windows.Forms.DataGridColumnStyle.GetColumnValueAtRow(System.Windows.Forms.CurrencyManager, int)

Here are the examples of the csharp api class System.Windows.Forms.DataGridColumnStyle.GetColumnValueAtRow(System.Windows.Forms.CurrencyManager, int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: My-FyiReporting
Source File: DGCBColumn.cs
View license
protected override void UpdateUI(CurrencyManager cm, int row, string text) 
		{ 
			_cb.Text = GetText(GetColumnValueAtRow(cm, row)); 

			if (text != null) 
				_cb.Text = text; 
		}

2. Example

Project: My-FyiReporting
Source File: DGCBColumn.cs
View license
protected override void Paint(Graphics g, Rectangle rect, 
					CurrencyManager cm, int row, bool alignToRight) 
		{ 
			string text = GetText(GetColumnValueAtRow(cm, row)); 
			PaintText(g, rect, text, alignToRight); 
		}

3. Example

Project: My-FyiReporting
Source File: DGCBColumn.cs
View license
protected override void Paint(Graphics g, Rectangle rect, 
					CurrencyManager cm, int row, Brush backBrush, Brush foreBrush, bool alignToRight) 
		{ 
			string text = GetText(GetColumnValueAtRow(cm, row)); 
			PaintText(g, rect, text, backBrush, foreBrush, alignToRight); 
		}

4. Example

Project: My-FyiReporting
Source File: DGCBColumn.cs
View license
protected override void Edit(CurrencyManager cm, int row, Rectangle 
				rect, bool readOnly, string text, bool visible) 
		{
			_CM = cm;
			_Row = row;
			originalText = _cb.Text; 

			_cb.Text = string.Empty; 
			_cb.Bounds = rect; 
			_cb.RightToLeft = DataGridTableStyle.DataGrid.RightToLeft; 
			_cb.Visible = visible; 

			if (text != null) 
				_cb.Text = text; 
			else
			{
				string temp = GetText(GetColumnValueAtRow(cm, row)); 
				_cb.Text = temp; 
			}

			_cb.Select(_cb.Text.Length, 0); 

			if (_cb.Visible) 
				DataGridTableStyle.DataGrid.Invalidate(_cb.Bounds); 

			if (ReadOnly) 
				_cb.Enabled = false; 

			editing = true; 
		}